function hoisting like var

Igor Bukanov igor at mir2.org
Sun Jul 27 16:12:21 PDT 2008


2008/7/28 Ingvar von Schoultz <ingvar-v-s at comhem.se>:
> I wonder if people would like using them.

Anything that is available in a browser will be used and abused ;).

>
>>>   {[ code ]}
>>>
>>>   [[ code ]]
>>>
>>>   [ code ]
>>
>> Any of this can be a valid ES3 code as [] always means an array literal.
>
> I get the impression that disambiguation would be easy.

eval('[]') is a valid and, in fact, useful ES3 code. Similarly eval('{[]}').

Regards, Igor



More information about the Es4-discuss mailing list