In JavaScript ES6 we can create objects where variable names become keys like this:
> let a = \'aaa\' \'aaa\' > let b = \'bbb\' \'bbb\' > { a, b }
It has been proposed in Ruby #15236 - Add support for hash shorthand and has unfortunately been rejected for the moment.