I was reading the presentation slide for the experimental feature for syntax matching.. in which, there's support for "shorthand" matching with hash, in the form of `{ a: }`.. or, following the examples presented above: ```ruby def f...ignatiusreza (Ignatius Reza Lesmana)
blakewest (Blake West) wrote: > Hi all, > ... osyo (manga osyo) wrote: > hi, blakewest. > ... I like this :+1: `{ a, b, c }` looks a bit cleaner to me, probably because of my familiarity with es6 syntax, so it require less conte...ignatiusreza (Ignatius Reza Lesmana)
janfri (Jan Friedrich) wrote: > I think the use of destructuring for this is much more Rubyish than the ES6 syntax. Agreed that destructuring hash is very much ruby, since destructuring array is already supported.. but, I think suppo...ignatiusreza (Ignatius Reza Lesmana)
Hi guys, Thanks for the discussions! Sorry I didn't noticed that it was proposed (multiple times) before.. I tried to search, but couldn't find a hit.. The ES6 syntax that this gets inspired from is strongly becoming the standard n...ignatiusreza (Ignatius Reza Lesmana)
PR in github: https://github.com/ruby/ruby/pull/1990 inspired by javascript support for object literal shorthand notation `{ a }`, which will be expanded into `{ a: a }`.. to avoid ambiguity, this shorthand is only supported when h...ignatiusreza (Ignatius Reza Lesmana)