[squeak-dev] Re: The Trunk: System-ar.242.mcz
Andreas Raab
andreas.raab at gmx.de
Thu Feb 4 05:51:58 UTC 2010
Eliot Miranda wrote:
> Andreas,
>
> one rationale for
> ...
> do: [| blockScope | ... blockScope := ...]
> ...
> over
> | methodScope |
> ...
> do: [... methodScope := ...]
> is that if ever one adds parallel do to the language the former
> continues to work whereas the latter breaks. Personally I find
> declaring things at method scope that are truly block scope bad style
> and not forward looking. Yes, the auto declare facility is poor in this
> regard but it's fixable.
The change wasn't intentional, I was merging a whole bunch of stuff from
Juan and wasn't going to rewrite every method manually to push the temps
into the proper place. You'll have to accept that when you merge
external code you get some of that style along with your own. Not much
to do unless you fix the tools to do The Right Thing by default.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|