3 ms·
Why? Adding a new keyword also means adding new syntax and also will break stuff, e.g. var new-return-from-keyword = "test";
by MartinMond 15y ago
Why? Adding a new keyword also means adding new syntax and also will break stuff, e.g.
var new-return-from-keyword = "test";
- amasad 15y agoIts not about "breaking stuff". Its about keeping the language as small as possible. Part of JS's success is being small as a language. [EDIT] For example you could teach functions to beginner programmers once. And could then easily introduce lambdas/callbacks/generators(And maybe block lambdas) without introducing much new syntax.
- dextorious 15y ago1) who said that it has to be added as a keyword? 2) It's trivial to fix it even in that case. 3) A well chosen keyword will break like 0.0000000000000000001% of the web. Big deal.