Hi --

On Sun, 4 Feb 2007, Kalman Noel wrote:

> Robert Klemme:
>> On 04.02.2007 04:55, Minkoo Seo wrote:
>>> I got a question on Proc.new and lambda { ... }. AFAIK, there's two
>>> differences between Proc.new(=proc) and lambda.
>> I think you have it slightly wrong: "proc" and "lambda" are aliases
>> while "Proc.new" works different.
>
> This is true for Ruby 1.8, but was changed in Ruby 1.9.  The decision was
> taken because proc and Proc.new are lexically too similar to have different
> meanings, IIRC.

Yes -- this was something that was raised at RubyConf in 2002 or 2003,
and Matz agreed that having proc != Proc.new, while proc == lambda,
was confusing.


David

-- 
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
    (See what readers are saying!  http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)