I noticed that new lambda syntax -> in Ruby 1.9 is not supported even in the latest 1.6.4 jruby release. So, I am guessing this syntax is not commonly used in the ruby community. Is it because the syntax is new or are there any other disadvantages?
x = -> y { y+1 }
x.call(2)
This returns 3 in ruby 1.9.1 and gives a syntax error in jruby 1.6.4
You are not running it in 1.9 mode.