Scripting languages and IDEs (was: If python goes EToys...)

Lex Spoon lex at cc.gatech.edu
Fri Aug 25 13:10:43 UTC 2006


Marcel Weiher <marcel at metaobject.com> writes:
> One idea that's been on my mind for a bit is that maybe for an OO
> scripting system, classes should be defined in separate script files?
> So the script file itself can define a sort of implicit class context,
> but this can vary.  Hmm..

That sounds good to me. Or maybe better, a script file could have an
*instance* of a particular (unnamed) class, unless you put a special
header at the top of the file to make it a re-instantiable class.
Defaults matter, and defining classes in script files is the less
common case.

Whether with classes or instances, "File scoped" variables could then
be instance variables.


I have often wished workspaces worked this way, by the way, but never
got around to implementing it....


-Lex




More information about the Squeak-dev mailing list