> Sorry, I ment "final". final classes and methods. The idea that you > can prevent someone from subclassing your class or overriding your > methods. I've seen things that hinder reuse, but this is the first > time I've seen one that violently blocks reuse! "final" is only useful for strongly-variable-typed language, such as Java. If the variable is not strongly-typed, people can always use delegation or has-a scheme to subvert the class, even the class itself is declared as final. For a truly well designed class, which has no public/protected fields, nor protected methods, it really does not matter whether it is final or not, since the subclass can not do anything beyond the class' public interface. Unless we want Perl to be strongly typed everywhere, I doubt the usefulness of final except documentation purpose. Hong
- Re: Expunge implicit @_ passing Michael G Schwern
- Re: Expunge implicit @_ passing Ken Fox
- RE: Expunge implicit @_ passing Garrett Goebel
- Re: Expunge implicit @_ passing Michael G Schwern
- Re: Expunge implicit @_ passing Michael G Schwern
- Re: Expunge implicit @_ passing David L. Nicol
- Re: Expunge implicit @_ passing Ken Fox
- Re: Expunge implicit @_ passing Michael G Schwern
- Re: Expunge implicit @_ passing Damien Neil
- Re: Expunge implicit @_ passing Michael G Schwern
- RE: Expunge implicit @_ passing Hong Zhang
- RE: Expunge implicit @_ passing Brent Dax
- Re: Expunge implicit @_ passing Michael G Schwern
- RE: Expunge implicit @_ passing David Whipp
- Re: Expunge implicit @_ passing Damien Neil
- RE: Expunge implicit @_ passing Dan Sugalski
- RE: Expunge implicit @_ passing Eric Roode
- RE: Expunge implicit @_ passing Hong Zhang
- RE: Expunge implicit @_ passing Dan Sugalski
- Re: Expunge implicit @_ passing Michael G Schwern
- Re: Expunge implicit @_ passing Dan Sugalski