[squeak-dev] Ideas about sets and dictionaries

Russell N Hyer hrothgar.ofstingan at gmail.com
Wed Nov 11 21:39:56 UTC 2009


Sets already contain nil,

Evaluate this, for example:

| badger |

badger := Set new.
badger add: 1.
badger inspect

and you'll see there are already nils!

2009/11/11, Levente Uzonyi <leves at elte.hu>:
> Hi!
>
> On Wed, 11 Nov 2009, Russell N Hyer wrote:
>
>> So you're really talking about having two types of null?
>>
> No. I'm talking about letting a set contain nil. Try evaluating Set with:
> nil. and you will see what my problem is.
>
>> nil being the set that contains nothing
>>
> nil is not a set. Set new gives you an empty set.
>
> Cheers,
> Levente
>
>



More information about the Squeak-dev mailing list