defmulti confusion #2023
-
Hi! I want a Clojure style |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.