We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ns foo) (defprotocol Foo (foo [this])) (ns bar (:require [foo :as f])) (extend-type String f/Foo (f/foo [this] (subs this 0 1))) (f/foo "foo") ;;=> "f"
Note that Clojure totally ignores the alias:
(extend-type String f/Foo (foobarf/foo [this] (subs this 0 1)))
also works.
It seems CLJS only supports this if the namespace really exists.
The text was updated successfully, but these errors were encountered:
[#440] Aliases in protocol functions should work
c7c223a
[babashka/sci#440] Support aliases in protocol fns
0a2c7fd
No branches or pull requests
Note that Clojure totally ignores the alias:
also works.
It seems CLJS only supports this if the namespace really exists.
The text was updated successfully, but these errors were encountered: