Is

  {{ return }}

syntactic sugar for 

  (function() {{ return }})()

too?

--lars

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:es4-discuss-
> [EMAIL PROTECTED] On Behalf Of Igor Bukanov
> Sent: 25. juli 2008 13:34
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [email protected]; Ingvar von
> Schoultz
> Subject: Re: function hoisting like var
> 
> 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
> _______________________________________________
> Es4-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es4-discuss
_______________________________________________
Es4-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es4-discuss

Reply via email to