From: gabriele renzi Date: 2005-03-21T15:14:51+09:00 Subject: Re: Paul Graham recommends Ruby David A. Black ha scritto: > I admit that for...in analogies don't do a whole lot for me -- it's > not my favorite :-) But I don't think the case is exactly the same. > It's not so much the call/() thing as the method/lambda thing that I > find incongruous -- that is, putting () after a variable that refers > to a lambda and have the variable sort of morph into the equivalent of > a method name. Or something like that. notice that it is not a lambda thing.. is something done for callable objects: >> a='yu ' => "yup" >> def a.call( other) 'yuk yukl' end => nil >> a 10 => "yuk yukl" I think of it as to_str, a way to duck type a callable.