by asolove · 13y ago · 0 comments
In fact, the book is even called "The Haskell Road to Logic, Maths and Programming" [0]. It covers mathematical notation, proof construction, and lots of interesting portions of discrete math that should be of interest to programmers. And large portions of the results are demonstrated or used in interesting Haskell programs.
[0] http://www.amazon.com/Haskell-Programming-Second-Edition-Com...
I took a class on discrete mathematics only with formulas. I didn't understand any of it.
Then I read this book and all of it made sense.
"What I cannot program, I cannot understand.." (with my apologies to Feynman)
To the modern eye, we see radically different type systems and conclude they are as different as night and day.
But there was a time when the world was divided into people who thought anything higher-level than C or FORTRAN was stupid and impractical, and those who aspired to build more abstract languages. LISP was one of the rallying cries of the latter group. Haskell clearly falls into that group too.
I know I should be demonstrating that assertion with hard numbers, but in my defense I do know a lot about programming language history and politics. ;)
lambda calculus --> Haskell
\--> LISP --> Scheme
\--> Common LispTo your point, many of the best solutions are done in Haskell. They make it seem so easy!