statements that could be expressions?

Waldemar Horwat waldemar at
Thu Jun 2 13:19:52 PDT 2011

On 06/01/11 18:47, Breton Slivka wrote:
>> Yes, if you make it mandatory to parenthesize statements then this would
>> work, except for the important case of blocks.
>>     Waldemar
> This might be a pretty radical (or stupid) thing to ask, but what if a
> block with labeled statements were semantically the same as an object
> with expression lambdas, or completion values assigned to its keys?
> Then perhaps the syntactic conflict wouldn't be a conflict at all, and
> a break [label] would be a call of the lambda at
> [parentblockobject][label]
> .

In your proposal what are the values of the following expressions?

({x: y})



({x, y})

({x; y})


More information about the es-discuss mailing list