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

The reason is obvious: to avoid adding a new keyword and breaking existing code that might use it as an identifier.


C++ had to add new keywords anyway.


It does, but N new keywords are always going to mean less breakage than N+1 new keywords.

On top of that, the best keywords - e.g. in this case "let" or "var" - are also the ones most likely to clash with identifiers in existing code.




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

Search: