4 ms·
I'm in the opposite camp - I love the short object syntax in JS and the way it mirrors destructuring. I'm very happy to see something similar come to Ruby! But,
by maxfurman 5y ago
I'm in the opposite camp - I love the short object syntax in JS and the way it mirrors destructuring. I'm very happy to see something similar come to Ruby! But, that said, I think that the Ruby version is ugly compared to JS and the extra colons are noisy. I assume there's some reason why the parser can't read `{ x, y }`, as ruby is notoriously hard to add syntax to.
- pqdbr 5y agoCount me in as well, very happy to see this addition.
- hvis 5y ago> I assume there's some reason why the parser can't read `{ x, y }`, as ruby is notoriously hard to add syntax to. Something in the parser using the colon after the first identifier to disambiguate between hashes and blocks, probably.