methodical icon indicating copy to clipboard operation
methodical copied to clipboard

Add a `defmethod` hook to multimethods to do custom stuff when a new method is added

Open camsaul opened this issue 3 years ago • 2 comments

One possibility is that multimethods that normally use compound dispatch values can throw an error if you add a dispatch value with the wrong number of args (except for :default).

camsaul avatar Aug 24 '22 02:08 camsaul

#113 would solve the use case here. Once we have that in we might not need this anymore.

camsaul avatar Sep 01 '22 06:09 camsaul

This COULD be done with a ,vanilla?) multimethod that dispatches off of the multimethod. But that doesn't work for programmatic ones. So this should probably be an option passed during creation

camsaul avatar Sep 09 '22 14:09 camsaul