function hoisting like var

Igor Bukanov igor at mir2.org
Fri Jul 25 04:33:55 PDT 2008


I guess that proposal can be summarized in a very short form:

make

  {{ code }}

a syntax sugar for

  (function() { code })()

On a few occasions I have used the latter form in ES3 programs to get
the benefits of the let locals without using the let keyword.

Regards, Igor



More information about the Es4-discuss mailing list