Fork me on GitHub
#babashka
<
2019-11-28
>
mauricio.szabo15:11:58

Just saw the announcement on BB adding support for namespaces. What are the functions that were implemented? More specifically, was ns-map, ns-aliases, ns-publics and *ns* added to bb?

borkdude15:11:25

no, just the ability to have a namespace form like (ns foo (:require ...)) so programs are more compatible with normal Clojure. The only other thing is in-ns. This will have an effect on how keywords are resolved ::foo and ::str/foo.

borkdude15:11:29

One example of a portable script that can be run with both clojure and bb: https://github.com/borkdude/babashka/#portable-tree-command

borkdude15:11:06

*ns* would be easy to add, if this is useful to anyone

borkdude15:11:37

since sci/bb doesn't have real vars yet, it behaves more or less like CLJS in that regard

borkdude15:11:56

^ @mauricio.szabo makes sense?

mauricio.szabo17:11:40

Yes, it does. I asked because these are the functions I use for autocomplete on Chlorine, so if they were present I could enable autocomplete for bb 🙂

borkdude18:11:15

@mauricio.szabo I'm planning to support more like automatically loading user defined namespaces from other files or maybe loading from .jar files, etc, but it's a gradual process

holyjak10:11:32

I'm anyway amazed at the continual flow of improvements to bb :)