From: Rick DeNatale Date: 2007-04-08T04:11:52+09:00 Subject: Re: about functional programming On 4/7/07, Joel VanderWerf wrote: > > Do you mean Proc.new? IIRC Kernel#proc and Kernel#lambda are aliases. > Proc.new is the one with non-local returns, at least as of 1.8.6.[1] Yep you're right. I got the difference between a raw proc and a lambda and the two methods. > There is another reason to not use #proc, which I have yet to resign > myself to: it is going away in some future ruby, and we will have to > type two more characters each time we want to use it. Personally, I prefer lambda to proc, particularly since we are talking about functional programming. Makes me think of Alonzo Church every time I type it. And Ruby saves me so many characters in so many other contexts compared to most languages that it seems like a small thing anyway. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/