(Almost) everything is expression
Mark S. Miller
erights at google.com
Fri Nov 11 08:19:45 PST 2011
On Fri, Nov 11, 2011 at 7:40 AM, gaz Heyes <gazheyes at gmail.com> wrote:
> On 11 November 2011 15:33, Mark S. Miller <erights at google.com> wrote:
>
>> let a = ({
>>>
>>> print('doing stuff');
>>> 100;
>>> });
>>>
>>
> How do you know the difference between a blank block statement and a
> object literal? Surely it becomes an expression once an assignment occurs
> anyway.
>
Doh! Sorry, I completely mis-thought that. Nevermind.
--
Cheers,
--MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111111/64887b58/attachment.html>
More information about the es-discuss
mailing list