Re:Implementing Function Overloading in Python
by lordgrenville on Thursday March 26, 2020 @07:17AM
(#22692406)
Yes, my reaction to this was "this is horrifying Python, never do this in real life!" But also fascination at how malleable and subvertible it is once you go deep enough into the internals.
Re:Implementing Function Overloading in Python
by iovrthoughtthis on Thursday March 26, 2020 @03:56AM
(#22691429)
You might enjoy ruby as well then!
But I'm not sure you'd ever want to implement overloading for practical uses. Just utilize optional arguments and some branching logic within the function. But even then, rethink how much you're trying to pack into a function.