About removing global variables

Jecel Assumpcao Jr jecel at merlintec.com
Thu Nov 25 14:01:44 UTC 2004


=?ISO-8859-1?Q?st=E9phane_ducasse?= wrote on Thu, 25 Nov 2004 16:43:56
+0100
> I wanted to get feedback about the idea of removing global variables in 
> Smalltalk.

Having removed them entirely from Neo Smalltalk, I could hardly argue
against this idea.

> [...] 
> Now we would have to type Smalltalk transcript instead of Transcript.

Well, you removed all but one ;-)

Globals are specially bad from a security viewpoint. They violate POLA
(principal of least authority) by making a set of objects available to
every single object in the system.

-- Jecel



More information about the Squeak-dev mailing list