Block Lambdas: break and continue

Herby Vojčík herby at mailbox.sk
Sat Jan 14 08:18:18 PST 2012


I realized 'break' semantics is in no way enforceable in lambda-block 
control structure, and each early return is in fact 'continue' (which may 
stop the loop or whatever depending on the value).
Also, since in lambda-block, | character could be used to distinguish it 
from keyword-loop-continue.
So, what about allowing

    continue |expression|;

syntax in addition to continue [label]; (with possibility to simple 
'continue ||') and use it to denote return-from-lambda-block-only?

Herby



More information about the es-discuss mailing list