TerseMan was: Re: How many subclasses does a class have?

Alan C. Kay alank at wdi.disney.com
Wed Jun 17 20:24:43 UTC 1998


John-Reed --

A good way to give epiphany a chance is to contemplate the difference between a clock full of gears, and a living organism made from cells, which can grow itself from a single "universal" cell.

Cheers,

Alan

-----

At 9:05 AM -0700 6/17/98, John-Reed Maffeo \(rlpa80\) wrote:
>Yo TerseMan,
>
>If you ever compile a list of TerseMan tersities please post it
>to the list. Looking at examples like this really helps me
>understand the subtle differences between oo programing and
>procedural programming using an oo language.
>
>I am sure than a oo epiphany awaits me somewhere down the
>road, but until then I need all the help I can get.
>
>Thanks,
>
>John-Reed Maffeo
>
>
>
>
>Dan Ingalls wrote:
>> 
>> >data := Dictionary new.
>> >
>> >Object withAllSubclasses do: [:each | data at: each subclasses size put:
>> >(data at: each subclasses size ifAbsent: [0]) + 1]
>> >
>> >data inspect
>> 
>> TerseMan says, just print...
>> 
>> (Object withAllSubclasses asArray collect: [:each | each subclasses size])
>>         asBag sortedElements





More information about the Squeak-dev mailing list