coady / multimethod

Multiple argument dispatching.
https://coady.github.io/multimethod
Other
277 stars 24 forks source link

Clarify if `@multimethod` works with position-or-keyword arguments #101

Closed ParadaCarleton closed 10 months ago

ParadaCarleton commented 10 months ago

Right now @multimethod dispatch is documented as "positional only"--does that mean it only dispatches on arguments that are positional-only, or does it dispatch on arguments that are positional-or-keyword?

coady commented 10 months ago

multimethod only dispatches on positional arguments (from the caller). Which means positional-only or positional-or-keyword parameters (the function definition).

multidispatch includes support for keyword arguments.