This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-23
Channels
- # announcements (16)
- # asami (4)
- # babashka (49)
- # beginners (70)
- # calva (25)
- # clojars (3)
- # clojure (40)
- # clojure-europe (82)
- # clojure-france (15)
- # clojure-gamedev (16)
- # clojure-nl (2)
- # clojured (7)
- # clojurescript (13)
- # conjure (11)
- # cursive (4)
- # data-science (12)
- # datalevin (2)
- # figwheel-main (5)
- # gratitude (5)
- # honeysql (5)
- # hyperfiddle (4)
- # jobs (4)
- # joyride (3)
- # lsp (10)
- # malli (2)
- # missionary (14)
- # nbb (2)
- # off-topic (3)
- # pathom (16)
- # rdf (5)
- # releases (4)
- # sci (35)
- # shadow-cljs (16)
- # tools-deps (22)
- # xtdb (7)
sci 0.3.5 seems to have dropped default binding for str
. noticed when bumping up deps on malli, so:
;; works on 0.3.4, not on 0.3.5
(require '[sci.core :as sci])
(sci/eval-string "(str/upper-case \"kikka\")")
Is this intentional? don’t see it on the https://github.com/babashka/sci/blob/master/CHANGELOG.md#v035. :thinking_face:I can easily change the transformation docs & tests to use something else, but would like to document this to Malli CHANGELOG too.
Yes, it was intentional. Having the default str
alias in the user
namespace can be configured with:
{:aliases {'str 'clojure.string}}
I think the default configuration of SCI should be unopiniated, which was basically the reason
That’s a good call. I first ported all examples to use the long form but the examples looked bad and added the alias into malli-sci default config. thanks!
kinda wild, but using (or)
with 20 clauses doesn’t work but 19 does in my SCI compiler
(or
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
;nil
true)
=> true(or
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
nil
true)
=> nilwhat I ended up with was a redefs.clj
namespace, and a macro that does all the things necessary to make clojure.test run in isolation
it just took a bit of trial and error to get the magic recipe, thank you so much again!
will this be autodeployed? should I monitor this page https://clojars.org/org.babashka/sci