News for hackers. Stuff that matters.
Re:Overload functions in Python by gpderetta on Monday February 17, 2020 @07:44AM (#22347268)
concepts/traits/type classes or whatever they are called in your language of choice are all forms of overloading (more specifically ad-hoc polymorphism) and are generally understood to be A Good Thing.

At least in C++, most forms of overloading I see is to enable generic programming.

Of course nobody stops you from naming functions doing different things with the same name, but then again nobody stops you from naming functions badly in the first place. As usual with more powers come more responsibility.

There are no comments on this comment yet.