Where did it come from?
Why didn't they use ->
or some other notation?
Where did it come from?
Why didn't they use ->
or some other notation?
So when they use ->
, will you ask why does Rails(actually not Rails bu Ruby) use ->
, and why not =>
?
By the way, the new lambda syntax in Ruby 1.9 use ->
.
Faster interpreting. The => is not ever going to be used anywhere else, -> may be, making it quicker to decide what to do with as you parse the script.