(somewhat) dead simple multiple dispatch
a5rocks (821)

Now, I know this is python, and really low effort, but this is a Proof of Concept.

PS If you can think of a way for **kwargs to work well, I would really thank you :D

PPS Just realized how much I failed at being able to use proper types (typing.List[int] for example, I'll try fixing this...)

You are viewing a single comment. View All
a5rocks (821)

@Warhawk947 this is supposed to allow you to specify which functions get called on special types, so for example you could make a function foo that raises an error except when the type of the argument is list, in which case it would call a different function.