Allen's lambda syntax proposal
Yuh-Ruey Chen
maian330 at gmail.com
Sun Dec 7 19:52:06 PST 2008
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.
More information about the Es-discuss
mailing list