I was using codegen/write-namespace! and found that using a nil:ns-prefix results in a generated namespace that starts with a .. This makes the generated namespace an illegal Java class name.
I was wondering if a nil:ns-prefix would be an allowed? This would allow the same namespace patterns between Clojure and Python, making interop seem more "seamless".
A possible implementation would be the ns-symbol binding in codegen/write-namespace! ignoring a nil or blank :ns-prefix, e.g.,
Hi,
I was using
codegen/write-namespace!
and found that using anil
:ns-prefix
results in a generated namespace that starts with a.
. This makes the generated namespace an illegal Java class name.I was wondering if a
nil
:ns-prefix
would be an allowed? This would allow the same namespace patterns between Clojure and Python, making interop seem more "seamless".A possible implementation would be the
ns-symbol
binding incodegen/write-namespace!
ignoring anil
or blank:ns-prefix
, e.g.,I see that we can already define
:ns-symbol
directly to achieve anil
:ns-prefix
, so this may already be allowed behaviour.For your kind consideration.
Many thanks for this excellent library!