So the usual functions like clojure.core/defmethod and the like can be used. This will make Methodical a true drop-in replacement.
Need to figure out how this will work since clojure.lang.MultiFn is a mutable object and .addMethod actually changes its state, while Methodical multimethods are immutable, so you can only add methods and the like with alter-var-root or equivalent.
Not sure it would actually be possible without reworking Methodical multimethods so they are mutable objects
So the usual functions like
clojure.core/defmethodand the like can be used. This will make Methodical a true drop-in replacement.Need to figure out how this will work since
clojure.lang.MultiFnis a mutable object and.addMethodactually changes its state, while Methodical multimethods are immutable, so you can only add methods and the like withalter-var-rootor equivalent.Not sure it would actually be possible without reworking Methodical multimethods so they are mutable objects