News for hackers. Stuff that matters.
Re:ES6 in Depth: Destructuring by bshimmin on Friday May 29, 2015 @07:45AM (#9623965)
You're quite right, I meant to add `values_at` in the hash example! And the syntax is still not so nice:

  irb(main):005:0> a, b = {:a => 1, :b => 2}.values_at(:a, :b)
  => [1, 2]
Or:

  irb(main):006:0> a, b = (h = {:a => 1, :b => 2}).values_at(*h.keys)
  => [1, 2]
Edit: Ruby's hashes are ordered since 1.9, incidentally.
Re:ES6 in Depth: Destructuring by petepete on Friday May 29, 2015 @11:17AM (#9625068)
a, b = {a: 1, b: 2}.values