opshin icon indicating copy to clipboard operation
opshin copied to clipboard

Use functools.singledispatch to create overloaded functions

Open nielstron opened this issue 1 year ago • 0 comments

the python functools library provides a function that allows the user to create functions overloaded by type, singledispatch

This could be used to let users natively add Polymorphic Functions, by automatically rewriting such annotated functions into the PolymorphicFunctionType

nielstron avatar Apr 06 '23 06:04 nielstron