3 ms·
What about javascript? Could that be a decent language to get into functional programming? It's definitely mainstream enough.
by RobertDeNiro 10y ago
What about javascript? Could that be a decent language to get into functional programming? It's definitely mainstream enough.
- Roboprog 10y agoYou're lucky you didn't get voted down -5, with the Type Police out and about. I like ES5 (would be ES6, but for IE support...) Javascript, but it is a bit light on the immutability aspect, given the environment and problem set it usually runs in. Check out the "Ramda.js" library for JS (http://ramdajs.com/0.21.0/index.html http://ramdajs.com/0.21.0/index.html). There's some good concepts put to use there. (although I have my own version of "currying" implemented at work, as I like to sometimes have "0 arity" functions for event handlers -- but those types of "functions" aren't particularly "pure")