Skip to content
New issue

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

defprotocol should return a symbol #751

Closed
frenchy64 opened this issue May 20, 2022 · 0 comments
Closed

defprotocol should return a symbol #751

frenchy64 opened this issue May 20, 2022 · 0 comments

Comments

@frenchy64
Copy link

version

./bb --version
babashka v0.8.3-SNAPSHOT

platform

uname -a
Darwin AmbrosesMBP2020.lan 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64 x86_64

problem

defprotocol should return a symbol to align with Clojure, instead returns a var.

repro

./bb
Babashka v0.8.3-SNAPSHOT REPL.
Use :repl/quit or :repl/exit to quit the REPL.
Clojure rocks, Bash reaches.

user=> (defprotocol P)
#'user/P
user=> (class (defprotocol P))
sci.impl.vars.SciVar

expected behavior

clj
Clojure 1.11.1
user=> (defprotocol P)
P
user=> (class (defprotocol P))
clojure.lang.Symbol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant