RE: Allowing object field name shorthand

2017-06-25 Thread Ron Buckton
There is one place where I could see this syntax being useful, though with different semantics, is a feature from C# that I seen used to good effect: Dotted names for shorthand property assignments. For example: ``` const results = books.map(x => ({ x.isbn, x.title,

Re: Allowing object field name shorthand

2017-06-25 Thread Mark
Another -1 for this. It adds complexity to object initializer processing, both in the obvious way (has to figure out to create the hidden object or possibly several nested hidden objects), and around the fact that object initializers are processed in source code order. Exactly, this proposal