3 ms·
One thing me and my teammate did in our last Clojure gig was to not shorten namespaces (with the `:as` keyword). Instead of in this example write `[cognician.c
by yjgyhj 9y ago
One thing me and my teammate did in our last Clojure gig was to not shorten namespaces (with the `:as` keyword).
Instead of in this example write `[cognician.chat.dom :as dom]` just write `cognician.chat.dom`. Then when calling, use the whole namespace.
It's a tradeoff between typing a little bit more (in reality, using the autocomplete function) in exchange for having the code readable. When you read something on line 213, you don't have to scroll up to double check what that short name refers to.
Wish :as was never added to begin with.