[squeak-dev] Re: The Trunk: Morphic-laza.477.mcz
Hannes Hirzel
hannes.hirzel at gmail.com
Tue Nov 23 18:21:22 UTC 2010
I like the idea of having a code snippet which can be executed in one
go to load something. Convenient as you start the execution and then
can go away.
Yes it might be useful to have a comment at the beginning telling
people that the code has been written in a way which allows this.
--Hannes
On 11/23/10, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> 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
>>>
>>>
>>>
>>
>
More information about the Squeak-dev
mailing list
|