stéphane ducasse wrote:
but lex
you could have World as a classVariable or
world ^ World current
and only get this problem in workspaces and we write much more code in method bodies than in workspace.
Stef,
There could be a lot of discussion about the disadvantages of removing globals (and there are many, in fact so many that I predict without any hesitation that it is not going to happen), but what, in your opinion, are the *benefits*?
I hope you're not going to simply tell us that 'everybody knows that globals are bad' :-).
Frankly, I am worried by your comments. You are a Prof. Dr. (i.e., a professor and a PhD) and people listen to what you have to say, and think that you probably know what you are talking about. Your students, but many others as well.
Then you come with this ludicrous suggestion of removing globals from Squeak, without apparently having thought through even the most obvious consequences.
I admit that when I first saw your suggestion I assumed you weren't really serious, but rather trying to make a point. But now it appears you are in fact serious.
I don't expect you to go and discuss this with me here, so I'm simply telling everyone who wants to hear it that this suggestion of removing globals seriously, is an idea that is going nowhere, and essentially a waste of time.
Cheers,
Peter