Replies: 3 comments
-
you can use this re-usable configuration from sci.configs: https://github.com/babashka/sci.configs/blob/main/src/sci/configs/clojure_1_11.cljc See the README on how to use those in general |
Beta Was this translation helpful? Give feedback.
-
As for clojure.math, you can just use |
Beta Was this translation helpful? Give feedback.
-
@borkdude apologies if my initial description wasn't clear - what I was requesting was that the new (in Clojure 1.11) fns and |
Beta Was this translation helpful? Give feedback.
-
Problem statement
I use
sci
(with some scaffolding) as a sandbox where beginners can easily learn Clojure basics. This sometimes verges into math, where new (in Clojure 1.11) fns and namespaces are particularly useful.Examples include (but are not limited to):
clojure.core/parse-long
clojure.core/parse-double
clojure.math
namespacePotential solutions (by no means exhaustive)
I would like these core fns and namespaces to be available to
sci
-executed code by default, just the same as other, older core fns and namespaces are.Potential alternatives (by no means exhaustive)
In my own scaffolding code I could manually expose these new core fns and namespaces to the
sci
environment, as described in thesci
docs [1] [2]Additional context
The "scaffolding" I've written happens to be an interactive chat bot, just in case that context is relevant for this issue.
Beta Was this translation helpful? Give feedback.
All reactions