[Pharo-project] [squeak-dev] Compiler pedantic about ifNotNil: argument

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sun Oct 10 17:18:30 UTC 2010


2010/10/10 Igor Stasenko <siguctua at gmail.com>:
> On 10 October 2010 20:10, Nicolas Cellier
> <nicolas.cellier.aka.nice at gmail.com> wrote:
>>>
>>
>> I don't follow the argument of readability. This leads to more
>> readable code, with less {[()]} parasit.
>> About ambiguity, it might traverse our spirit, but my original example
>> was very intention revealing.
>>
>> process ifNotNil: #terminate.
>>
>> It's quite natural to associate the words (process terminate) in above sentence.
>> Since ^#terminate makes no sense in this context, why should we fall
>> into this interpretation ?
>>
>
> so, answer yourself, what intent of writing things like that:
>
> process ifNotNil: TheVariable
>

depends if TheVariable can understand #cull:
If not, then open the debugger...

You can try it in updated trunk now.

Nicolas

> and you suggest that if object, which sits in TheVariable, is symbol, then
> it has to #perform upon process as receiver, and if not, then what?
>
>> About portability, it remains to see. The fun is that it's by porting
>> VW code that I found this uncompatibility :)
>>
>> Nicolas
>>
>>
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>



More information about the Squeak-dev mailing list