Block lambda is cool, its syntax isn't

Gavin Barraclough barraclough at apple.com
Sun Jan 22 01:00:44 PST 2012


As well as pragmas, macro-expansion would be a possibility!

define fn function
undef fn

G.

On Jan 20, 2012, at 6:40 PM, Brendan Eich wrote:
>> 	Allen Wirfs-Brock	January 20, 2012 5:41 PM
>> 
>> 
>> 
>> At the TC39 meeting we were trying to think of pragma candidates.
>> 
>> It wouldn't surprise me if JS programmer would happily trade one:
>> 
>> use fn;
>> 
>> per file in exchange for being able to use "fn" as a synonym for "function". In terms of character counts, you come out ahead starting with the second function definition. 
>> 
>> Allen
> 
> I have considered this in the past. It always seemed too little, due to return. If it enabled another production:
> 
>   AssignmentExpression :
>     fn Identifieropt ( FormalParameterListopt ) AssignmentExpression
> 
> 
> (or we just added this unconditionally, without the pragma -- but the pragma is good too) then I'd be happy, finally.
> 
> /be
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120122/2a37200c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postbox-contact.jpg
Type: image/jpeg
Size: 1287 bytes
Desc: not available
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120122/2a37200c/attachment-0001.jpg>


More information about the es-discuss mailing list