Hello! While testing SCI I bumped into an issue where slurp could not be resolved. Which in turn made me want to see if I could find a list of symbols included in a default configuration.
But while scrolling around the source code I had trouble finding out where default symbols from clojure.core are added (or not). Iβm probably just bad at searching.
Can someone point me in the right direction? π
Ooh, I think I finally found it in the namespaces-namespace!
Yes, there it is :)
SCI only includes safe defaults by default, so no access to the file system for example
You can look in the babashka repo how to add more from clojure in there, in babashka/impl/clojure/core.clj
I think I already figured it out, thanks! π
I donβt see 'if and 'and in the list, are they magical symbols? π
oh I see, thereβs a lot going on in the analyzer-namespace. This thing is more elaborate than I thought! Very cool π
if is a special form, and is treated like a special form for performance
Thanks for the pointers! π