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

I’m trying to understand the syntax:
BlockArguments :
    BlockLambda
    BlockArguments [no LineTerminator here] BlockLambda
    BlockArguments [no LineTerminator here] ( InitialValue )

- Wouldn’t this allow the following?  BlockLambda [no LineTerminator here] 
BlockLambda
- InitialValue means that paren-free can be combined with arguments that aren’t 
blocks, right?

     myLoopFunc(initValue1)(initValue2) { | arg1, arg2 | ... }

   I think I would prefer the following (IIRC, more like Ruby):

     myLoopFunc(initValue1, initValue2) { | arg1, arg2 | ... }



-- 
Dr. Axel Rauschmayer
[email protected]

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

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to