Fork me on GitHub
#babashka
<
2021-03-14
>
borkdude13:03:15

New release of babashka sql pods. Better support for reading and writing arrays and PostgreSQL json(b): https://github.com/babashka/babashka-sql-pods/blob/master/CHANGELOG.md#v004

👍 1
flowthing17:03:32

Is there a way to use reader conditionals with Babashka such that code is only executed if using actual Clojure, but not when using Babashka? It looks like :clj currently applies to Babashka as well:

user=> #?(:clj true)
true
user=> #?(:bb true)
true

borkdude17:03:26

@flowthing #?(:bb nil :clj :yo)

flowthing17:03:19

Should've thought of that. picard-facepalm

borkdude17:03:09

I'm fixing compatibility with version-clj (https://github.com/xsc/version-clj). The version 0.1.2 works with bb. I've used this library several times in scripts already. But the lately the author switched to some interop with java.util.regex.Matcher which isn't in bb. Adding support for this makes the binary 1mb bigger. I wonder if version-clj itself is something we might want to have in bb, but for now we can run it as a lib.