Is there a way to get namespace object by its name? For example:
(def ns-symbol (ns-name *ns*)) ;; get namespace name as symbol
(def ns-object (ns-by-name ns-as-str)) ;; convert it back to namespace object
So in this example I need function ns-by-name.
(ns-name *ns*)returns a symbol not a string, so your ns-as-str is misnamed…Given that, converting it back is as simple as…
If you really want the name of the namespace to be a string…