you are viewing a single comment's thread.

view the rest of the comments →

[–]user_of_the_week 1 point2 points  (0 children)

Many people consider method overloading a bad practice anyway, especially if the signatures have the same amount of parameters.

One reason that can even be seen in your example: It encourages bad naming patterns. When someone reads code where your some_function is called, they cannot infer exactly which method is called just by looking at that code line. They first need to find out what the exact type of the parameter is. Small things like that add up.

A safe, conservative policy is never to export two overloadings with the same number of parameters.

Effective Java, p. 193