Fork me on GitHub
#babashka
<
2019-12-04
>
holyjak09:12:05

pprint is not available in bb due to GraalVM issues, right? Is there any [built-in] alternative? Thank you!

borkdude10:12:35

@holyjak Not yet, there is an issue for it: https://github.com/borkdude/babashka/issues/133 I'll probably include fipp for pprinting. Meanwhile you can use jet --pretty for pprinting EDN output

borkdude12:12:20

How do people typically use *ns*? I've now got this:

$ lein run "(ns foo) *ns*"
#object[sci.impl.vars.SciNamespace 0x51ce6f85 "foo"]

holyjak17:12:05

Difficult to answer for everybody 🙂 I use it to check the current ns, to list publics.

mauricio.szabo14:12:26

I use it to check for publics too, also to list current aliases on the NS, refers, but mostly for tooling

borkdude12:12:39

this is fine for just checking the current ns I guess

borkdude12:12:19

$ ./sci "(ns foo) (println (ns-name *ns*)) (ns bar) (println (ns-name *ns*))"
foo
bar