[squeak-dev] Overrides. Evil. Need to do something with it.
Bert Freudenberg
bert at freudenbergs.de
Wed May 5 15:41:25 UTC 2010
On 05.05.2010, at 08:34, Michael Haupt wrote:
>
> Hi,
>
> On Wed, May 5, 2010 at 5:12 PM, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> Overrides are evil, period.
>
> question mark.
>
> Imagine some class being loaded that right- and joyfully overrides a
> method whose implementation solely consists of sending
> #subclassResponsibility to self.
If something is declared as subclassResponsibility then you are supposed to implement the same method in a subclass, not patch the method itself. Patching is evil.
- Bert -
More information about the Squeak-dev
mailing list
|