Re:Python Idioms in Rust
by pjmlp on Saturday March 31, 2018 @01:24AM
(#16721898)
As someone that learned FP when Haskell did not exist and Miranda papers were still fresh, this mentality that only Haskell matters as FP notion really feels odd.
[ Parent
| on HN ]
Re:Python Idioms in Rust
by OtterCoder on Saturday March 31, 2018 @10:21AM
(#16723390)
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.
If 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.
Completely 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.