methodical
methodical copied to clipboard
Functional and flexible multimethods for Clojure. Nondestructive multimethod construction, CLOS-style aux methods and method combinations, partial-default dispatch, easy next-method invocation, helpf...
It gets super confusing when you have multiple aux methods with the same dispatch value, and it can lead to weird gotchas if you rename a namespace or remove them....
The dispatch value that actually got you there. I have found myself wanting this a few times.
This is mostly for debugging things.
If you have two `:before` methods that are both applicable but neither one is dominant over the other, the order they are applied is indeterminate. This matters for the threading...
One reason to do this might be to write an `:around` method that logs the dispatch value of the method actually getting executed. ``` {:methodical/combined-method? true} ``` Is on it...
For some operator method combinations like `+` the order the methods are done in is not important, but the usual dispatchers can still fail if there are multiple methods for...
The main purpose is for validation (right?), so if we conform the dispatch value to it things break since the `dispatch-fn` does not do the same sort of conforming
`sort` doesn't work with mixed vectors and keywords apparently.
So you don't mix it up with `prefer-method!`