Re: Pre-PPC: class :abstract

[email protected] (Darren Duncan)
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
On 2025-12-19 2:59 a.m., Ovid wrote:
> For abstract classes, they have uses, too, such as being the base class for a 
> factory and ensuring that every factory class has the required interface. They 
> do have one notable fragility, though. If you add a new abstract method, all 
> subclasses are immediately broken until they can be updated. Maybe not so bad 
> for closed source work, but bad for open source.

That problem is avoided easily enough by the abstract class having a default 
implementation, which in likely most cases would be reasonable. -- Darren Duncan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.