DEV Community

Discussion on: Haskell for javascript programmers.

Collapse
 
entrptaher profile image
Md Abu Taher

Even though he explained it really well, I see why it's not popular, because like too many limitations and we hooomans don't like to have any limit.

He explained the limitations and their workarounds. Such FP is for PROs. :D

Good video, thanks for sharing.

Collapse
 
antonrich profile image
Anton

These limitations only seem to be limitations. I used to be afraid of Haskell. Until recently I went to edx.org and pulled out their old course on FP with Eric Meijer. It's actually not intimidating. In Haskell you don't have to explicitly write
\x -> (y -> (z -> x + y + z)))
you can just write
\x y z -> x + y + z

When I first saw the video I thought the same way. Then it dawned on me that the point was to just introduce PURE functional programming through JS. It is tedious and feels limiting to write PURE FP in JS but it's different in Haskell (or other FP languages), that's the point.

Collapse
 
eljayadobe profile image
Eljay-Adobe

JS is not a good language for trying to do "pure FP". However, Elm is a language that is ML inspired, and transpiles to JS.

Elm is undergoing a lot of change as it evolves. It's at 0.19, but still worthy of taking a serious look at it. Even for production, depending on one's production qualifications.