News for hackers. Stuff that matters.
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.
Re:Python Idioms in Rust by jholman on Saturday March 31, 2018 @11:21PM (#16726531)
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.

Re:Python Idioms in Rust by willtim on Saturday March 31, 2018 @10:45AM (#16723488)
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.