[squeak-dev] Compiler pedantic about ifNotNil: argument

Igor Stasenko siguctua at gmail.com
Sun Oct 10 22:59:30 UTC 2010


On 10 October 2010 21:36, Levente Uzonyi <leves at elte.hu> wrote:
> On Sun, 10 Oct 2010, Igor Stasenko wrote:
>
>> Okay,
>> lets assume, we using #cull: for ifNotNil: argument.
>>
>> Then how about ifNil:ifNotNil ?
>>
>> What you expect from given example:
>>
>> self perform: (object ifNil: #foo ifNotNil: #bar)
>
> If object is nil, then the value of [self perform: #foo], else [self
> perform: (object perform: #bar)].
>
oh really? it is because you defined so.
but if you don't know what inside, what will be a least surprising and
most expected behavior?


>
> Levente
>
>>
>> ?
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko AKA sig.
>>
>>
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list