dohzysmes
{key: value} syntax on Ruby 1.8

The great Ruby 1.9 syntax for hash will be supported in Ruby 1.8 !

I suppose we have to wait Ruby 1.8.8, but this is a really nice news.
This is the original commit (and the ruby-lang version) :

parse.y: Support for { key: value } -style hash immediates.

Ruby 1.8.7 provides a safer way to work with the block parameters, Ruby 1.8.8 will have a nicer syntax to define hash… The transition between Ruby 1.8 and Ruby 1.9 is going to be thinner and thinner !

blog comments powered by Disqus