I see, I can understand how the currently proposed syntax is more powerful but I can also see people saying that is the base case with only one object it seems weird to have the additional curly braces Sebastian If your intent is to say ``` const a = {b: e.b, c: e.c, d: e.d}; ``` then the reception to such functionality (often referred to as "picking") on this list has been decidedly lukewarm, although I remain mystified why, since IMHO it is a common use case and syntactically straightforward. FWIW the currently proposed syntax is ``` const a = { {b, c, d} = e }; ``` which allows combining properties from more than one object, as in ``` const a = { {b, c, d} = e, {g, h, i} = k }; ``` which is equivalent to ``` const a = {b: e.b, c: e.c, d: e.d, g: k.g, h: k.h, i: k.i}; ``` Bob On Wed, Oct 25, 2017 at 12:39 AM, Sebastian Malton <[email protected]> wrote:
| ||||||
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

