Skip to content

Can we subclass clojure.lang.MultiFn? #34

@camsaul

Description

@camsaul

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthigh-priority!more important than the other issues

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions