Re: when is it apt to use classes in preference to only arrays and lists
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: when is it apt to use classes in preference to only arrays and lists

From: Bryan Oakley <oakley@bardo.clearlight.com>
Date: Thu Sep 29 2005 - 15:21:35 CEST

vikas wrote:
> hey i am working on a project in which i will be requiring plenty of
> different parameters to be associated with similar objects. what is a
> better idea, to use multidimentional arrays or classes?
>

The answer is "it depends".

As a general rule, use what you are most familiar with. However, both
arrays and classes (and OO packages as a whole) have strengths and
weaknesses. Without knowing what your requirements are (memory? Speed?
maintainability? ...), it's hard to say.
Received on Thu Sep 29 16:11:57 2005