PragDave: New lambda syntax in Ruby 1.9

screenshot

I'm slowly getting used to the new -> way of specifying lambdas in Ruby 1.9. I still feel that, as a notation, it could be clearer. (I'd personally like just plain backslash, because that looks pretty close to a real lambda character, but that's not going to happen.) But having punctuation, rather than the word lambda, makes a surprising difference to the way my eyes read code. For example, you could write a method that acts like a while loop. def my_while(cond, &body)  while cond.call  &n...

http://pragdave.blogs.pragprog.com/pragdave/2008/05/new-lambda-synt.html

これはsmalltalk(squeak?)の世界だなあ。
なるほど、そうきたか。 whileの実装

http://b.hatena.ne.jp/entry/http://pragdave.blogs.pragprog.com/pragdave/2008/05/new-lambda-synt.html