Share your thoughts in the 2024 State of Clojure Survey!

Welcome! Please see the About page for a little more info on how this works.

+1 vote
in Compiler by

Is there currently a way to compile with eliding docstrings of all private vars only and all vars in some, but not all, namespaces? If not, is there a workaround?

1 Answer

+1 vote
by

No, that level of customization is not available currently. Can you say more about what problem you're trying to solve?

by
Shipping a lib in object code but with docstrings of the public API only, similar to what Datomic does.
by
I asked the Datomic team and they do this by using elide-meta, but alter-meta at the end of the api namespace to add the docstrings only there.
by
Very cool tip Alex, thank you for asking!
...