3 ms·
I personally feel like Haskell makes a good reference implementation for functional programming. Whenever someone is explaining how to do some interesting FP th
by OtterCoder 9y ago
I personally feel like Haskell makes a good reference implementation for functional programming. Whenever someone is explaining how to do some interesting FP thing in, say, JavaScript, I usually just ignore them and go read about how the same thing is done in Haskell, which is usually clearer and less burdened with the complexity of getting a mutable, proceedural, eager language to behave like an immutable, lazy, functional one.
- willtim 9y agoCompletely agree. Anyone interested in functional programming should learn Haskell for this reason alone. Skip the blog post that falsely claims a "functor is a box" or a "monad is a burrito" and go read the original papers.
- jholman 9y agoIf you think that immutability and laziness are inherently part of functional, then you're part of the new-school-is-the-only-school problem. I mean, I'm not saying that immutability and laziness aren't interesting. But FP has a long long history, most of it's not lazy, and immutability is nowhere near universal.