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

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


2010/10/10 Tobias Pape <Das.Linux at gmx.de>:
> Am 2010-10-10 um 18:30 schrieb Florin Mateoc:
>> On 10/10/2010 10:55 AM, Levente Uzonyi wrote:
>>> On Sun, 10 Oct 2010, Randal L. Schwartz wrote:
> […]
>>>
>>>
>>
>> But the argument against it is not about implementation, it is about readability, that's where it introduces ambiguity
>> and gratuitous incompatibility with other dialects.
>> Sugar is bad for you in your food, let's be conservative with it in our language as well.
>> If all we want is to type less, we might as well drop keyword selectors (we could just have the colons) and use some
>> kind of Hungarian notation (peace, Levente :) ) for identifiers
>
>
> Full ACK
>
> So Long,
>        -Tobias
>
>

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 ?

About portability, it remains to see. The fun is that it's by porting
VW code that I found this uncompatibility :)

Nicolas



More information about the Squeak-dev mailing list