User loginNavigation |
Experience with non-linearized superclasses?Many OO languages with multiple inheritance linearize superclasses, to remove ambiguity. E.g., Dylan and Python both use the C3 algorithm. Craig Chambers (in the languages Cecil and Diesel) argues against linearization (page 30 in the Cecil spec), and prefers a very simple, so-called "distance metric": a (method from a) class A only overrides another class B, if A is a subclass of B. Order of classes in the superclasses list of a class is ignored. Programmers may have to add methods for disambiguation. I find Chambers' approach elegant, but I wonder how it stacks up in practice. In case there are any Cecil/Diesel users, or users of other languages without linearization, or anyone with an opinion on this topic, I'd love to hear from you. By Manuel J. Simoni at 2011-02-14 12:02 | LtU Forum | previous forum topic | next forum topic | other blogs | 4477 reads
|
Browse archives
Active forum topics |
Recent comments
11 weeks 5 days ago
11 weeks 6 days ago
12 weeks 5 hours ago
12 weeks 5 hours ago
12 weeks 5 days ago
12 weeks 5 days ago
12 weeks 5 days ago
15 weeks 5 days ago
16 weeks 4 days ago
16 weeks 4 days ago