strawman for the := operator

Axel Rauschmayer axel at rauschma.de
Thu Aug 9 11:38:51 PDT 2012


Those are the labels that can be used e.g. with break and continue. Not names of properties in an object literal.


[[[Sent from a mobile device. Please forgive brevity and typos.]]]

Dr. Axel Rauschmayer
axel at rauschma.de
Home: http://rauschma.de
Blog: http://2ality.com

On 09.08.2012, at 20:15, Matthew Robb <matthewwrobb at gmail.com> wrote:

> Is there no way to contextually tell that you are not within an object literal?
> 
> On Thu, Aug 9, 2012 at 2:11 PM, Rick Waldron <waldron.rick at gmail.com> wrote:
> 
> 
> On Thu, Aug 9, 2012 at 2:06 PM, Allen Wirfs-Brock <allen at wirfs-brock.com> wrote:
> 
> On Aug 9, 2012, at 10:52 AM, Matthew Robb wrote:
> 
>> snip
> 
> 
>> obj:{...};
> 
> Unfortunately, this would be ambiguous with 
>     label: { /*a block */ };
> 
> 
>> 
>> Specific method names for the Object.* could be decided upon. Would also be nice, following the above, to have the following
>> 
>> obj:prop = value;
> 
> same here
> 
> But, also ambiguous with label 
> 
> var a;
> label:a = true;
> 
> Rick
> 
> 
> Allen
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
> 
> 
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120809/4fe2e282/attachment.html>


More information about the es-discuss mailing list