obb 2022-01-20

hi - trying to figure out how much clojure I can use with obb… wondering if I can slurp a file in the same directory as the script - currently getting an Error (Could not resolve symbol slurp) - thanks!

obb is a ClojureScript interpreter, and slurp is Clojure-only.

whoops - didn’t read enough of the docs… hopped over from babashka - my bad

For reading a file you’ll want to fall back on JavaScript (JXA) interop.

👍 1

excellent - thanks for the help!

👍🏻 1

You’re welcome! Thanks for trying out obb!

we could expose slurp in obb.core perhaps, this is what I've done in nbb too, but there I made the result a promise so I can eventually supporting slurping urls too ;)

this needs careful consideration