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.
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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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.