From: Gary Wright Date: 2012-03-08T11:53:12+09:00 Subject: Re: Proc.new v. lambda On Mar 7, 2012, at 11:32 AM, Ralph Shnelvar wrote: > > In terms of design, why isn't lambda a super or sub class of Proc? > It is always hard to answer 'why?' with respect to design decisions. I don't have any special insight but Ruby tends towards shallow inheritance graphs and 'wide' interfaces. Instead of Collection, Array, Stack, Queue, Dequeue, FixedArray, VariableArray, etc., there is just Array with 88 methods (ruby 1.9.3-p125). Similarly instead of Proc and Lambda, there is just Proc. I guess the most accurate, but perhaps unsatisfying answer, regarding the design of core Ruby classes is that they are that way because that is what Matz likes. :-) Gary Wright