I'm writing a clojure application which is growing from small to medium sized. We're currently importing modules using
(ns foo (:use bar))
(fn-in-bar)
but I think that switching to
(ns foo
(:require [bar :as b]))
(b/fn-in-bar)
would help with clarity and code comprehension. Is this a good way to do things? Is there a better way?
Yes. The second form is the prefered approach.
There is some discussion related here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With