Out of curiosity, is there a specific list of blockers preventing the Babashka spec fork from working in nbb? Also has anyone tried using CLJS's spec implementation with nbb?
@m8ydiw7o I'm working on getting spec working in SCI (thus in nbb too)
will perhaps have something to show for tomorrow
thank you!
done, and released
CLJS spec doesn't work (unsurprisingly). Probably would need to use the CLJS compiler or shadow-cljs instead or stick with Malli on nbb.
I've made a super simple spec clone once which worked in an early version of babashka. Perhaps it also works in nbb https://github.com/borkdude/spartan.spec
Made some change to it and it seems to work:
$ ./cli.js -e '(nbb.core/load-file "/tmp/spec.cljs") (clojure.spec.alpha/def ::x int?) (clojure.spec.alpha/valid? ::x 1)'
truesorry, yelled too soon:
$ ./cli.js -e '(nbb.core/load-file "/tmp/spec.cljs") (clojure.spec.alpha/def ::x int?) (clojure.spec.alpha/valid? ::x "dude")'
true