Alex Russell wrote:
> Indeed, it can look like an expression to begin a name assignment:
>
>     var thinger = {("foo"+"bar"): ... };
>
> Has a syntax like this been shot down yet?:
>
>     var thinger = {{ foo, bar }: ... };
>
> Since objects (much less literals) aren't used as keys in hashes  
> often, this strikes me as being somewhat less ambiguous. The short (no  
> args) version might then be:
>
>     var thinger = {: ... };
>
> Arguments against?

I think that would require LALR(k) for bottom-up parsers, which we're
trying to avoid mandating.
_______________________________________________
Es-discuss mailing list
Es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to