camsaul / methodical

Functional and flexible multimethods for Clojure. Nondestructive multimethod construction, CLOS-style aux methods and method combinations, partial-default dispatch, easy next-method invocation, helpful debugging tools, and more.
Eclipse Public License 2.0
291 stars 19 forks source link

Add some sort of ambiguous method hook #127

Open camsaul opened 2 years ago

camsaul commented 2 years ago

The default implementation can throw an error for primary methods or silently do nothing for aux methods. You could implement this to do something like custom ambiguity resolution for primary methods, or log a warning if aux methods have ambiguous order if you wanted that. I think this should be a function that gets passed to the dispatcher

camsaul commented 2 years ago

This would obviate #103 a bit