[squeak-dev] Re: Environments
Andreas.Raab
andreas.raab at gmx.de
Fri Jun 29 11:25:40 UTC 2012
Bert Freudenberg wrote
>
> Maybe aliasing isn't the best solution to resolve ambiguities?
>
> What if there was no aliasing, but names would strictly be resolved in
> order of import? That is exactly as your implementation currently works,
> right?
>
> To refer to a shadowed global, one would have to explicitly request it
> from its environment, e.g.:
>
> self environment: 'Magma' at: #Session
>
> I like this better than aliasing because it shows what's happening when
> actually using it, not somewhere hidden at the import. It's even less
> magic :)
>
> At least that's what I would strive for in an initial implementation. We
> can add bells and whistles later.
>
+1. Adding convenience later sounds like a good strategy. It means there is
time to find out what the actual patterns are once people start using it.
Cheers,
- Andreas
--
View this message in context: http://forum.world.st/Environments-tp4636629p4637266.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|