function hoisting like var
Brendan Eich
brendan at mozilla.org
Sat Jul 26 06:32:50 PDT 2008
On Jul 26, 2008, at 2:06 PM, Ingvar von Schoultz wrote:
> How sad! It seemed such a simple and intuitive notation!
Opinions vary, but all the ones I heard at the Ecma TC39 meeting
found it neither simple nor intuitive, and some abhorred it on
aesthetic grounds to boot.
> I think all of these would be unambiguous:
>
> {. code .}
>
> {: code :}
>
> {| code |}
>
> {[ code ]}
>
> [[ code ]]
>
> [ code ]
These are either syntax errors without opt-in versioning, or (the
last three) do create incompatible ambiguity (consider array
initialisers).
What's more, as Waldemar pointed out many threads (and too many
words) ago, they create capture problems. Please work through the
last mail I sent before replying; if some vocabulary or infelicitous
word choice is causing any confusion, feel free to mail me privately
and ask pointed questions. Thanks,
/be
More information about the Es4-discuss
mailing list