3 ms·
Here is a tangible benefit of learning Haskell which people agree on almost universally: learning Haskell will make you a better programmer even in other progra
by yawaramin 12y ago
Here is a tangible benefit of learning Haskell which people agree on almost universally: learning Haskell will make you a better programmer even in other programming languages.
You will want to code using more elegant, more composeable and succinct, methods. You will want to break things down into small, provably correct units, and then combine them into larger solutions which take advantage of the proven correctness at the lower levels.
You will want to lean heavily on the type system and encode as many of your program constraints in there as possible, leaving your unit tests free to only deal with the logic of your code.
Even if you never write a piece of Haskell code again, you will find over time that more and more ideas from Haskell and similar languages are bleeding through into the languages you use. C++? Closures, optionals. C#? LINQ (monads). Obj-C? On the path to retirement, replaced with Swift. Java? Lambdas, optionals. Clojure? Typed Clojure. Scala? Scalaz. In fact, Swift? Swiftz. JavaScript? People are building entire functional languages (and reactive frameworks) on top of JS.
These things aren't happening by accident. Haskell is a fertile proving ground for the future of programming.