Closed sylvorg closed 8 months ago
multimethod
supports variable arguments, but there are no types in the example. The pythonic way to do this kind of "overloading" is to use defaults.
def call(name="world"):
print(f"Hello, {name}!")
Actually, speaking of which, how do you use multidispatch
with defaults / keyword arguments? And are they the same thing?
Hello! Sorry, it's me again! 😅
Is there any way to implement a variable number of positional arguments, like in the following example:
Thank you kindly for the help, and sorry again for the multiple issues!