This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-28
Channels
- # announcements (1)
- # babashka (9)
- # beginners (82)
- # calva (6)
- # cider (3)
- # clj-kondo (69)
- # cljdoc (4)
- # cljs-dev (10)
- # cljsrn (2)
- # clojure (74)
- # clojure-europe (11)
- # clojure-italy (9)
- # clojure-nl (15)
- # clojure-spec (18)
- # clojure-uk (89)
- # code-reviews (8)
- # core-async (42)
- # cursive (22)
- # datomic (26)
- # fulcro (13)
- # graalvm (33)
- # graphql (1)
- # leiningen (20)
- # malli (19)
- # music (1)
- # off-topic (4)
- # pathom (56)
- # re-frame (3)
- # reitit (26)
- # shadow-cljs (40)
- # spacemacs (5)
- # tools-deps (25)
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?
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
.
One example of a portable script that can be run with both clojure
and bb
:
https://github.com/borkdude/babashka/#portable-tree-command
since sci/bb doesn't have real vars yet, it behaves more or less like CLJS in that regard
^ @mauricio.szabo makes sense?
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 🙂
@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
I'm anyway amazed at the continual flow of improvements to bb :)