(Almost) everything is expression
gazheyes at gmail.com
Fri Nov 11 10:48:27 PST 2011
On 11 November 2011 18:29, Dmitry Soshnikov <dmitry.soshnikov at gmail.com>wrote:
> This is why the topic is called "*(Almost)* everything...". In general
> case we may not include this case with label-statement into proposal, since
> the construction you wrote isn't practice IMO. But, we should consider also
> theoretical things and this case it can be better to avoid the case at all
> then to solve it -- especially if there is no much profit in practice from
> it. Though, if we can manage it, why not?
Another thing isn't a block statement a no-op? So :
x wouldn't be undefined or anything since a blank block statement shouldn't
return anything. Then if it returns undefined then how would a block
statement actually work:
You'd have to make a block statement return undefined to make sense.
So as you can see you are adding complexity to the syntax in both the
developer level and the sandboxing level. There are a ton of problems this
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss