Fork me on GitHub
#babashka
<
2024-03-30
>
pez15:03:49

Does Babashka support a conditional reader tag entry like :bb? I’m asking because I am looking at generalizing session management in Calva and wonder if it makes sense to let the user select to have a Babashka repl session back cljc files. If that makes sense.

borkdude15:03:22

yes, but only since a year or 4?

borkdude15:03:09

the logic is as follows:

:clj 1 :bb 2 => 1
:bb 2 :clj 1 => 2
:cljs 1 :default 2 => 2

borkdude15:03:31

so if the :clj branch is before any other, this one will be chosen, this is done for compatibility with clojure

pez15:03:34

Awesome! I now recall seeing about this when it was added, I think.

pez15:03:09

How about nbb? And I think we discussed something for Joyride too, come to think about it. And what about squint and cherry? I’m probably forgetting some Clojure you’ve created.

borkdude15:03:08

nbb: org.babashka/nbb

borkdude15:03:27

squint / cherry: same as bb (name-wise)

borkdude15:03:37

all CLJS-ish targets also respect :cljs first