NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Academic Nonsense (Score:2)
What I really need to do is write an article on why PhD's should never be trusted.
Re:Academic Nonsense (Score:1)
I agree that treating it as an absolute rule is nonsense. But the basic principle - that you should be able to expect that objects of a subclass can be safely used in place of objects of a class - is sound. Furthermore in complex OO code it is common to have subclasses accidentally override methods of parent classes that they did not know about. And these cases area almost always real bugs.
Therefore the Liskov Substitution Principle is a rule of thumb to be aware of, and there is value in catching accidental violations of it.
Reply to This
Parent