strawman for the := operator

Brendan Eich brendan at mozilla.org
Thu Aug 9 11:31:31 PDT 2012


Matthew Robb wrote:
> Is there no way to contextually tell that you are not within an object 
> literal?

Label as in a labeled statement, not property name in object literal.

/be
>
> On Thu, Aug 9, 2012 at 2:11 PM, Rick Waldron <waldron.rick at gmail.com 
> <mailto:waldron.rick at gmail.com>> wrote:
>
>
>
>     On Thu, Aug 9, 2012 at 2:06 PM, Allen Wirfs-Brock
>     <allen at wirfs-brock.com <mailto: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 <mailto: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


More information about the es-discuss mailing list