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,
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
2 matches
Mail list logo