4 ms·
js actually supports functional paradigm. So, node.js has the most mature ecosystem for web i guess.
by ostvp 9y ago
js actually supports functional paradigm. So, node.js has the most mature ecosystem for web i guess.
- macintux 9y agoThere’s a huge difference between being a functional language and supporting functional paradigms. Nearly every major language does the latter, but if you consider immutability a key functional feature, for example, you’ll sorely miss it when the language doesn’t really support it.
- jbob2000 9y agoYou don't need the language to enforce immutability. If the project is small enough, you can enforce it yourself with a linter or by hand.
- Veen 9y agoOr use something like Immutable.js, but enforcing immutability on anything but a tiny project is likely to go awry. Takes a lot of discipline from everyone involved.
- cutler 9y agoClojurescript has pretty good Node.js support now and there's a web framework based on Node/Clojurescript - https://macchiato-framework.github.io https://macchiato-framework.github.io
- t3h2mas 9y ago> but if you consider immutability a key functional feature ... Fair point. I have to say that I appreciate both the libraries [1] and resources [2][3] concerning functional programming in the javascript community. The functional reactive programming movement is a neat example where we can find functional ideas brewing [4]. Say someone decides that vanilla JS isn't enough. They can play with functional first languages that transpile to JavaScript [5][6]. [1] http://ramdajs.com/ http://ramdajs.com/ [2] https://www.gitbook.com/book/drboolean/mostly-adequate-guide/details https://www.gitbook.com/book/drboolean/mostly-adequate-guide... [3] https://leanpub.com/javascript-allonge/ https://leanpub.com/javascript-allonge/ [4] https://cycle.js.org/ https://cycle.js.org/ [5] http://elm-lang.org/ http://elm-lang.org/ [6] http://www.purescript.org/ http://www.purescript.org/