3 ms·
As long as you ignore the tremendous maintainability and performance hurdles preventing you from using FP javascript in production, yeah, it's 'about as good'.
by kevingadd 13y ago
As long as you ignore the tremendous maintainability and performance hurdles preventing you from using FP javascript in production, yeah, it's 'about as good'. Other than the fact that it's incredibly poorly designed and has a shitty standard library.
Blaming JavaScript's awful standard library on imperative languages is lazy. Almost every imperative language I've used has a standard library vastly superior to JS's, in breadth, depth and quality.
- thinkpad20 13y agoI didn't blame its standard library on imperative languages; I blamed its use of mutable data structures on that. I think the main reason it has a crappy minimal standard library is because for most of its lifetime it wasn't used for anything resembling "real programming." JS is a terrible language in many ways; don't get me wrong on that. However, I don't think it's any worse specifically at functional programming than any of the other mainstream dynamic languages (python, ruby, PHP, perl, etc), most or all of which are also founded on mutable data structures, lack of TCO, etc.