3 ms·
Which aspect of the functional programming paradigm cannot be done in Javascript?
by taco_emoji 11y ago
Which aspect of the functional programming paradigm cannot be done in Javascript?
- dickson 11y agoTail recursion optimization, lazy evaluation
- sabarjp 11y agoTail recursion optimization is in ES6. Lazy Evaluation is provided in multiple libraries, including lazy.js. There are also several libraries with pure functional implementations (ex: bilby)
- Lazare 11y agoIf you're listing a core language feature as something that "can't be done in that language", you may not understand the language as well as you think.
- Kutta 11y agoPolymorphic return types, most notoriously. But also anything that's complex enough so that dynamically typed implementations become unfeasible or effectively unmaintainable.