3 ms·
There's another design approach, taken by Eiffel - not allowing overloading at all. Bertrand Meyer's arguments are that it's of relatively little use, compared
by pvg 17y ago
There's another design approach, taken by Eiffel - not allowing overloading at all. Bertrand Meyer's arguments are that it's of relatively little use, compared to the cost (i.e. the kind of complexity you're describing), that it can get in the way of multiple inheritance and that genericity is a better tool for the sort of thing overloading is often used for. There's a section in OOSC about it (then again, there's a section in OOSC about more or less everything).