rtm / js-pick-notation

Proposal for Picked Properties in JavaScript
MIT License
26 stars 0 forks source link

Brackets instead of parents for programmatic property picking #1

Closed trusktr closed 7 years ago

trusktr commented 8 years ago

Why not

o.{[name1], [name2]}

instead of

o.{(name1), (name2)}

so that I follows the same pattern of square brackets from

{[name1]: o[name1], [name2]: o[name2]}

? That seems to be more intuitive.

rtm commented 7 years ago

Closing this issue as it relates to an earlier, obsolete version of the proposal.