[squeak-dev] Re: Cosmetic: move or remove a few temps inside closures

Levente Uzonyi leves at elte.hu
Sun Dec 27 20:59:46 UTC 2009


On Sun, 27 Dec 2009, Andreas Raab wrote:

> Nicolas Cellier wrote:
>> We shall now take the habit of declaring temps in inner scope possible
>> and avoid writing in outer temps if possible.
>
> Why? As long as auto-declare temps inserts temps at method level and 
> auto-remove of unused temps simply fails for block-level temps, this policy 
> would be annoying at best.

Because the code is cleaner and faster. The auto-declare stuff should be 
fixed, just like the auto-remove feature (this is really annoying) and of 
course the decompiler which has issues with variables declared in inlined 
blocks. For example: (EventSensor >> #eventTickler) decompile.


Levente

>
> Cheers,
>  - Andreas
>
>



More information about the Squeak-dev mailing list