Skip to content
Archive of entries posted on September 2009

Overloading, Is It really Worth It?

For a long time I’ve used overloading, but just recently I’ve been questioning its uses.
Readability
Looking at the call site when invoking an overloaded function its not immediately obvious which method is being called.

find("code buddy");
find(C_PLUS_PLUS);

After a quick look through the overloading options available I can always work out which one will be called – but why [...]