function hoisting like var

Igor Bukanov igor at mir2.org
Sat Jul 26 06:17:46 PDT 2008


2008/7/26 Ingvar von Schoultz <ingvar-v-s at comhem.se>:

> I think all of these would be unambiguous:
>
>    {. code .}

{. not work since {.0; } is a valid ES3

>
>    {: code :}
>
>    {| code |}

These 2 cases are indeed invalid  ES3.

>
>    {[ code ]}
>
>    [[ code ]]
>
>    [ code ]

Any of this can be a valid ES3 code as [] always means an array literal.

Regards, Igor



More information about the Es4-discuss mailing list