[squeak-dev] Re: The Trunk: Morphic-laza.477.mcz

Eliot Miranda eliot.miranda at gmail.com
Tue Nov 23 16:52:22 UTC 2010


On Mon, Nov 22, 2010 at 11:44 PM, Levente Uzonyi <leves at elte.hu> wrote:

> On Mon, 22 Nov 2010, Andreas Raab wrote:
>
>  Am I missing something? Why would one use
>>
>>        foo perform: #lastVersion.
>>
>> instead of the obviously equivalent
>>
>>        foo lastVersion.
>>
>> Seems like code obfuscation to me.
>>
>
> The method only exists in Metacello, so if you don't have it in your image
> the compiler will ask if you really want to use that selector. This may be
> annoying for some users.
>

For me thats a clear case of code that needs a comment.
 Intention-revealling code is fine without comments, but the non-obvious
needs documenting because otherwise someone may come along later and undo
the change because they understandably don't intuit the non-obvious.

2¢
Eliot

>
>
> Levente
>
>
>> Cheers,
>>  - Andreas
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20101123/4ad19be3/attachment.htm


More information about the Squeak-dev mailing list