[squeak-dev] Environments
Göran Krampe
goran at krampe.se
Wed Jun 27 08:35:04 UTC 2012
Hi Colin and all!
First of all - you are brave :)
Anyway, a few thoughts of mine, although I am no longer "invested" in
this area, I was earlier but have given up waaaay back.
1. AFAICT this will (in contrary to my solution) remove the
"modelessness" we have today. Or in other words, a code snippet will
behave differently depending on which environment you are in. One can
argue that this also holds true today (class variables shadowing globals
for example) but still. It reminds me of VA for Java where you had to
tell the "Workspace" in which class it was being run (in order to get
all the imports right). I am not sure I like where this is leading.
NOTE: My proposal meant that all class refs were actually in full, never
short. They just "rendered" short when it was reasonable.
2. Reading code will force me to always be aware of which environments
are imported into the package I am reading. Otherwise I will not know
which class is referred to when I read "Manager". NOTE: My proposal
would always expand names into full names if there were more than two in
the image.
3. And finally, this is AFAICT the same "pessimistic" approach that Java
etc use - in other words, each developer/project will create his/her own
little sandbox (=environment) and will start creating duplicate names
for things (knowingly or unknowingly) and will never really "notice"
this because this solution will never make it apparent that it has been
done. NOTE: My proposal would lead to ambiguous names being rendered
with full path and also asking the developer if he meant Color::Orange
of Fruit::Orange whenever he tried to type just "Orange" - thus making
him (and all others) aware of the slightly unfortunate name clash.
I am merely contrasting this with my own proposal from years back in
order to hear people's views on the above aspects.
Personally I am *happy* that this stone is finally turned.
On the other hand I am *unhappy* that you aren't facing any opposition
because unfortunately it may just indicate that our community have
shrunk considerably and people are instead flaming each other over on
Pharo-dev. ;)
regards, Göran
More information about the Squeak-dev
mailing list
|