This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-13
Channels
- # announcements (1)
- # babashka (29)
- # beginners (64)
- # calva (4)
- # cider (5)
- # cljs-dev (3)
- # cljsrn (2)
- # clojure (100)
- # clojure-australia (2)
- # clojure-conj (7)
- # clojure-dev (9)
- # clojure-europe (31)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (62)
- # community-development (2)
- # conjure (1)
- # cursive (21)
- # datomic (39)
- # events (2)
- # fulcro (7)
- # graalvm (24)
- # graalvm-mobile (11)
- # holy-lambda (3)
- # jobs (7)
- # lsp (15)
- # malli (26)
- # music (1)
- # nyc (2)
- # off-topic (18)
- # reagent (23)
- # reitit (5)
- # remote-jobs (1)
- # shadow-cljs (2)
- # tools-deps (26)
- # vim (6)
- # xtdb (17)
Probably will release a new bb version tomorrow. Changelogs are updated. Recent binaries from master in #babashka-circleci-builds. Plz test 🤞

I take it that adding the babashka icon to the previous message means: "ship it" 😆
This snippet showcases the new string interpolation stuff:
(in-ns 'other-ns)
(def value ::there)
(in-ns 'user)
(def value ::here)
(require '[selmer.parser :refer [<<]] '[other-ns :as o])
(<< "value is: {{value}} | other-ns/value is: {{other-ns/value}} | o/value is: {{o/value}}")
;;=>
"value is: :user/here | other-ns/value is: :other-ns/there | o/value is: :other-ns/there"
ok, try this binary: https://20925-201467090-gh.circle-artifacts.com/0/release/babashka-0.4.7-SNAPSHOT-macos-amd64.tar.gz
@U051GFP2V should your <<
macro also support nil values? e.g. (let [x nil] ...)
In that case I think (get env sym nil)
won't do
Alright, I have a pr that fixes printing false values properly coming up shortly. For nil though.. In selmer a nil
value is treated as a missing value, so I think mirroring selmer.parse/render there should be ok.
e.g.
(defn missing-value-fn [tag context-map]
(str "<Missing value: " (or (:tag-value tag) (:tag-name tag)) ">"))
(selmer.util/set-missing-value-formatter! missing-value-fn)
(render "{{here}} {{a-nil}} {{not-here}}" {:here 1 :a-nil nil})
;;=> "1 <Missing value: a-nil> <Missing value: not-here>"