4 ms·
I like what you are doing here. Since I've been introduced to Haskell, I wondered about functional programming in JavaScript. To my surprise, JavaScript is vers
by Kenji 11y ago
I like what you are doing here. Since I've been introduced to Haskell, I wondered about functional programming in JavaScript. To my surprise, JavaScript is versatile enough to support a lot of functional concepts!
- Nemcue 11y agoI can recommend flicking through https://leanpub.com/javascript-allonge/read https://leanpub.com/javascript-allonge/read -- it's a really good book on functional programming in JS. Ends up doing Ycombinators, trampolining etc.
- braythwayt 11y agoActually, the original version of this book is no longer for sale. The link for the updated free version is here: https://leanpub.com/javascriptallongesix/read https://leanpub.com/javascriptallongesix/read Or, if you want to buy it in other formats, here: https://leanpub.com/javascriptallongesix https://leanpub.com/javascriptallongesix
- agumonkey 11y agoAll these languages have a similar enough semantic core which if you remove assignments and use mostly closures/hof you end up with a syntactically heavy[1] untyped ML (sic). {Coffee,Live}script comes to mind. [1] remove return, curly braces .. with ES6 unpacking/pseudo-pattern-matching and let, you're half way there.