Apology if it is a naive question. I am pretty new to Clojure.
I have a question about cross namespace extension with protocol.
Let's say I have a name space
ns-a and within it I use protocol to extend the java String, to add a method called
How do I use this
myStringMethod from another namespace, say
ns-b, with code for example below?
(let [hello "hello"] (. hello myStringMethod))
Do I need to require name space
ns-a, even though I would never use anything from namespace
ns-a? Or compiler will scan all source code to ensure the extension is loaded?