11 ms·
You also need templates to make it possible to invoke a function on parameters of unrelated types.
by Xion 14y ago
You also need templates to make it possible to invoke a function on parameters of unrelated types.
- bunderbunder 14y agoOr interfaces. If the goal is to be able to invoke a method on an object without checking for anything other than whether a method with the correct signature exists, that isn't a feature that's supplied by dynamic typing. It's supplied by duck typing, which is yet another axis (alongside dynamic/static and strong/loose). A popular example of a statically typed language that has had duck typing for a very long time is Objective-C.