Axel Rauschmayer (2013-07-28T04:39:54.000Z)
+1

My perspective: I don’t see a use case for a missing body, but a missing parameter list would be very useful – to delay the execution of a block of code. It also makes much sense visually:

2.  (x, y) => { ... }
1.  x => { ... }
0.  => { ... }

On Jul 26, 2013, at 22:11 , Brandon Benvie <bbenvie at mozilla.com> wrote:

> On 7/26/2013 11:53 AM, Michael Haufe wrote:
>> A useless parameter is an option:
>> 
>> _=> 'foo'
>> 
> 
> This seems to be an argument in favor of making the params completely optional. The fact that throwing in a useless param is more concise than having zero params (due to paranthesis requirement).
> 
> I think the semicolon hazard is enough to make omitting the body questionable, but omitting the params is an easy win with no downside.
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130728/2161f27c/attachment.html>
domenic at domenicdenicola.com (2013-07-31T15:01:55.512Z)
+1

My perspective: I don’t see a use case for a missing body, but a missing parameter list would be very useful – to delay the execution of a block of code. It also makes much sense visually:

2\.  `(x, y) => { ... }`

1\.  `x => { ... }`

0\.  `=> { ... }`