simple shorter function syntax

Brendan Eich brendan at mozilla.com
Sat Jul 24 15:39:20 PDT 2010


On Jul 24, 2010, at 1:10 PM, Brendan Eich wrote:

> On Jul 24, 2010, at 12:59 PM, Alex Russell wrote:
> 
>> I think the plan was to allow for "return" in # functions. Again, we went around on this point a couple of times and I may be wrong to want auto-return. Frankly, I'd settle for a shorter name for "return" ;-)
> 
> Propose one? The completion value hazard is going to be a stumbling block in TC39, I would bet real money (andnot due to me).

Of course dherman already proposed explicit "result here" syntax: => expr. See

http://wiki.ecmascript.org/doku.php?id=strawman:let_expressions

But these were deferred.

/be



More information about the es-discuss mailing list