my bad I ment reserver word, not keyword in the tc39 vocabulary
-
-
-
-
-
-
Replying to @chicoxyzzy @oleg0082 replies 0 retweets 0 likes
-
Replying to @chicoxyzzy
Confusing, not sure how they did it, in previous versions it was there. Did they refine which words are "reserved keywords" and which are "literals"?
1 reply 0 retweets 0 likes -
-
Replying to @chicoxyzzy @oleg008
But null, just like false and true, is a reserved word, while undefined isn't. I believe this is what
@oleg008 is asking about.1 reply 0 retweets 3 likes -
Replying to @RReverser @oleg008
ah I think now I understand the question. In other words: why undefined can be used as identifier name?
2 replies 0 retweets 2 likes
Probably a historical thing; before ES5, the global `undefined` was writable. ES5 fixed that, but making it a keyword is likely not web-compatible.
-
-
Ingvar Stepanyan Retweeted Ingvar Stepanyan
Yeah, it can't be reserved at least because it's still valid local variable / parameter name:https://twitter.com/RReverser/status/1062418525921394688 …
Ingvar Stepanyan added,
1 reply 0 retweets 1 like -
Also I'm not sure that it makes sense to make it keyword since keywords may not be used as RHS expressions.
1 reply 0 retweets 0 likes - 9 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.