Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Yep, 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.


There's a reason, though, that people call it "callback hell." Many people are irresponsible with first-class functions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: