4 ms·
This seems like more of an antipattern to me. If you have to be thinking about linearization order, your hierarchy is probably too complex.
by joefkelley 11y ago
This seems like more of an antipattern to me. If you have to be thinking about linearization order, your hierarchy is probably too complex.
- SolarNet 11y agoI think the point is that if the hierarchy is complex enough that you have to think about it it's simple enough to figure. The cases presented are obviously over complex to describe the behavior.
- saheb37 11y agoMaybe to make it more interesting, it turned out to complex as you are saying. But idea was not to use A, B, C etc. Will try to come up with something different next time.
- saheb37 11y agoI have explained how linearization works, if you just wanna use it, its very easy. Just goes from right to left and you don't need to remember anything else. About anti pattern, I don't think so. It might not be useful every where, but at some places it makes sense to have stackable behavior.