On Mar 13, 2009, at 8:19 AM, Eric Thorsen wrote:

I come across some functions in clojure/core that are really useful in
tool building but often are private.
Is it possible to make these public?

An alternative to private that I've used in some of my contribs is to have a separate namespace for internal implementation details. This allows one to control exactly what public API is supported while still allowing access to the internals if someone really needs them.

For an example of this, please see clojure.contrib.miglayout which has exactly one public entry point and the supporting functions in clojure.contrib.miglayout.internal.

clojure.core is a tougher case because the entire language isn't available early on, but perhaps something like this could be made to work for at least some of the functions you're requesting.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to