A
anno4000
Ilya Zakharevich said:[A complimentary Cc of this posting was sent to
The real problem is that users have to know and take into account
implementation details of a class they're merely using.The typical case is a hash based class you want to inherit from.
I'm a little bit confused here: do you discuss "users" of the class,
or "developers" of derived classes?
The latter, considering a user everyone who isn't author.
AFAIU, having attributes in the language would bring absolutely no
benefits to the "merely users". The "developers", of course, are in a
very different situation...
You are right, it doesn't make a difference to the end user.
The contrasting situation would be development of a cluster of two or
more classes by a single developer (or team). Essentially this is the
only situation where inheritance among traditional Perl classes can
be handled because the derived class must account for implementation
details of the base class.
Anno