3 ms·
By "classic functional patterns" you mean recursion. There are other ways to implement functions that are "classically functional" using techniques other than
by fogus 14y ago
By "classic functional patterns" you mean recursion. There are other ways to implement functions that are "classically functional" using techniques other than recursion, that do not blow the stack. I'll talk about each and their tradeoffs.
- MBlume 14y agoI did also say "naive use" =) Looking forward to the book.
- gngeal 14y agoIt's not just recursion, it's calls in general, I guess. (There are other ways of being space-inefficient in functional programs, see the odd versus even streams issue in Scheme.) Are you going to mention tail calls in ES6 in your book, BTW?
- fogus 14y agoSorry for the late response. I will not cover ES6 tail calls very much at all except to mention the possibility for inclusion.