Re: Extending object literal property value shorthand

2015-03-25 Thread Rick Waldron
Inline... On Wed, Mar 25, 2015 at 12:25 AM Bob Myers r...@gol.com wrote: Thanks Rick. Yes, I had been hoping to make the following work: x = {a: 1}; y = {b: 2}; z = {x.a, b.y}; // {a: 1, b: 2} This is not destructuring per se. Of course, and that's not what I was exploring in attempting

Extending object literal property value shorthand

2015-03-24 Thread Bob Myers
Thanks Rick. Yes, I had been hoping to make the following work: x = {a: 1}; y = {b: 2}; z = {x.a, b.y}; // {a: 1, b: 2} This is not destructuring per se. It's an extension to object literal property value shorthand syntax. The idea was to derive the desired property name `a` from `x.a`. This