[squeak-dev] Rewriting 'ReadStream on: smth'
Damien Cassou
damien.cassou at gmail.com
Wed Jun 4 16:35:05 UTC 2008
On Wed, Jun 4, 2008 at 6:30 PM, Philippe Marschall
<philippe.marschall at gmail.com> wrote:
> 2008/6/4 Damien Cassou <damien.cassou at gmail.com>:
>> Hi,
>>
>> I'm interested in enhancing the code of Pharo (and maybe Squeak if the
>> community is interested).
>> Currently, I'm thinking about replacing 'ReadStream on: expr' by 'expr
>> readStream'.
>>
>> I can see the following advantages of this change:
>>
>> - no more direct reference on ReadStream where it is not necessary
>> - allows different implementation of #readStream depending on the receiver class
>> - clarify the code
>>
>> Can you detect any problem with this approach?
>>
>> The RefactoringBrowser allows this change to be done simply in all the
>> method of the image.
>
> Yeah, but it also pretty prints the code.
Another advantage (thank you Philippe):
- the source code is prettier :-D
(the only problem is with the strange meaning RB assigns to 'pretty' :-)
--
Damien Cassou
Peter von der Ahé: «I'm beginning to see why Gilad wished us good
luck». (http://blogs.sun.com/ahe/entry/override_snafu)
More information about the Squeak-dev
mailing list
|