4 ms·
Calling JS a functional language is like calling a tricycle a sports car. Apart from first class functions it has nothing any decent fp language has, like: part
by edem 10y ago
Calling JS a functional language is like calling a tricycle a sports car. Apart from first class functions it has nothing any decent fp language has, like: partial application, currying, immutable data structures (it does not even have decent non-immutable ones), etc. You can work around some of them (albeit painfully) but why would you do so if you can use a real fp language?
- dualogy 10y ago> no immutable data structures (it does not even have decent non-immutable ones) I'm no newbie to FP (IMHO) but this has me perplexed now.. is there a difference between mutable and "non-immutable" ones, or do you mean to say that JS has neither immutable nor mutables ones? ;)