Skip to content

defmulti confusion #2023

Answered by peaceamongworlds
oskarkv asked this question in Q&A
Mar 28, 2021 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

That link is for a very old and outdated version of the docs.

This article seems to have be a good introduction to implementing multimethods in Python. The final constructs with functions and decorators can easily be wrapped in a macro if you want the same syntax as Clojure.

This is Hy's implementation before it was removed.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@asemic-horizon
Comment options

@allison-casey
Comment options

@andrewgiessel
Comment options

@allison-casey
Comment options

@allison-casey
Comment options

Answer selected by allison-casey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants