Computed Property Name Shorthand Proposal
Herby Vojčík
herby at mailbox.sk
Sun Aug 30 11:05:56 UTC 2015
Alexander Jones wrote:
> That's exactly what this is. I appreciate the beauty in symmetry, but I
> think -1.
I second this.
> On 27 August 2015 at 17:25, Kevin Smith <zenparsing at gmail.com
> <mailto:zenparsing at gmail.com>> wrote:
>
> I'd expect the following to work, given that the prop expression
> evaluates to 'bar', and bar is in context.
>
> var foo = 'bar'
> var bar = 'ponyfoo'
> var baz = { [foo] }
> console.log(baz)
> // <- { bar: 'ponyfoo' }
>
>
> Hmmm... I'm not sure I would expect any such thing. It seems like
> you're proposing some kind of dynamic eval-ish variable binding
> lookup, which is probably going to be a no-go.
>
> Kevin
>
>
> _______________________________________________
> 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