Ben's blog

ramblings from cyberspace

Trade-offs between Single- and Multiple-Dispatch

Lately I've been thinking about the trade-offs between multiple-dispatch and single-dispatch.

Single-dispatch has its appeal in its simplicity. The process involves traversing the inheritance/prototype chain until a method with a matching name is…