News for hackers. Stuff that matters.
Re:The impoliteness of overriding methods by dougk16 on Wednesday December 19, 2012 @05:46PM (#4945243)
Another way to solve this problem in theory is to have Java-like annotations that force subclasses to call super whether they like it or not, and even where they must call super, for example @OverridesMustCallMe(location="top"). The super call could be automatically added at compile time if you don't provide it, or it could result in a compiler error if you don't provide it (probably the latter). Never seen a language like this though, so it may be a bad idea for some reason.

There are no comments on this comment yet.