3 ms·
I agree that if we apply rule 9 to JS we would end up with something extremely different. However don't use first-class functions in my opinion it would means
by siscia 12y ago
I agree that if we apply rule 9 to JS we would end up with something extremely different.
However don't use first-class functions in my opinion it would means to not pass function around, in anything.
So no callback and no a lot of nice "trick" that JS use (and I really enjoy.)
I don't think that JS can live with rule 9.
- PixelsCommander 12y agoYep, applying this restriction on functions is something I would avoid to suggest as they are a cornerstone of modern JS development. However another part of rule seems to be something to consider.
- debacle 12y agoThere's a reason, though, that people call it "callback hell." Many people are irresponsible with first-class functions.