This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-28
Channels
- # announcements (2)
- # babashka (16)
- # bangalore-clj (1)
- # beginners (93)
- # boot (11)
- # calva (5)
- # cider (13)
- # clj-kondo (49)
- # cljdoc (14)
- # cljs-dev (1)
- # clojure (99)
- # clojure-dev (3)
- # clojure-europe (1)
- # clojure-india (1)
- # clojure-italy (9)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-russia (1)
- # clojure-spec (31)
- # clojure-uk (21)
- # clojured (2)
- # clojurescript (18)
- # core-async (12)
- # cursive (36)
- # data-science (1)
- # datomic (54)
- # duct (3)
- # emacs (33)
- # events (1)
- # fulcro (17)
- # jobs (1)
- # joker (8)
- # keechma (1)
- # leiningen (7)
- # malli (8)
- # nrepl (19)
- # pathom (6)
- # planck (18)
- # re-frame (20)
- # reagent (18)
- # shadow-cljs (3)
- # sql (7)
- # vim (31)
Hi, why does clojure.core/str
works but not clojure.core/namespace
?
For example:
bb=> namespace
#object[clojure.core$namespace 0x7282191a "clojure.core$namespace@56034e7c9220"]
bb=> clojure.core/namespace
Could not resolve symbol: clojure.core/namespace [at line 2, column 1]
@mauricio.szabo because babashka doesn't have namespaces yet 🙂
@mauricio.szabo the issues you mentioned yesterday are fixed in 0.0.23
I see the issue @mauricio.szabo:
There's a difference between providing values via :bindings
and :namespaces
.
Babashka still uses the :bindings
for binding clojure.core
stuff that sci doesn't know about by default
But you can not refer to these values using clojure.core/...
, only unqualified
I made a note here @mauricio.szabo: https://github.com/borkdude/sci/issues/124
Here are the default values from clojure.core that are packed with sci:
https://github.com/borkdude/sci/blob/master/src/sci/impl/namespaces.cljc
Actually namespace
could just be added there, I see no problem with that
Great, thanks! I found the problem because I was doing some "setup" for evaluating code that could be re-used for multiple REPL envs
It is not a blocking issue now that reader conditionals is fixed 🙂. It can just turn things "flaky" if, for example, someone decides to (def namespace ...)
But there's still work to be done until I can publish a new version of Chlorine that will support Babashka, so it can wait