On 24 March 2016 at 14:40, Brian Barnes <[email protected]> wrote:
> That's a good point, "temp" would be a bad keyword.

Actually I think "temp" could be used with very little in the code
break way. Why? Because it wouldn't be a single keyword construct.
There are only a very few cases that are legal in code today where the
token "temp" followed by an identifier token could appear, and those
cases are mostly ASI related and would result in a nop. Since |"temp"
ident|  will in the vast majority of cases be a syntax error, the one
in question would be |"temp" destructassign|. It does not necessarily
clash with identifiers that spell out "temp". I think the actual clash
that you would find there is when you try to use destructuring
assignment of the array type. Possibly some with the object form and
block statements, though I believe the only case where the "temp"
reference is not a nop if written today is the array destructuring
form.

 Not that this would make it a a good idea, just that this particular
argument isn't as strong as you'd maybe think.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to