Whither SmallScript? (was Re: Integer micro-benchmarks)

Greg Ewing see at my.signature
Fri May 4 01:38:00 EDT 2001


"James A. Robertson" wrote:
> 
> MyClass addInstVarName: 'foo'
> 
> MyClass removeInstVarName: 'foo'

Presumably that implies recompiling all of MyClass's
methods, and searching out and updating all of it's
instances -- a much more heavyweight operation than
the Python equivalent.

It's not exactly the same thing, either -- Python
instance variables are added on a per-instance basis,
whereas that is adding one to all instances.

That's not to say the Python way is necessarily
better, just different.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list