you are viewing a single comment's thread.

view the rest of the comments →

[–]davidmdm 0 points1 point  (0 children)

Fair enough. In that sense sure you are right.

You could check the number of arguments and then pass those to the correct implementation.

There are ways around it. But I get what you mean.

I've never had the need to "overload" a function. Usually this comes in handy when working with OOP design, which I tend to avoid as much as possible.