defn- is pretty useful. But wouldn't it be equally useful to have def-, defmulti-, defmacro-, etc.?
I'm aware that it is possible to add the private tag to the metadata of the var, but in many code samples I've seen, people routinely get this wrong (I believe you need to attach the metadata to the *var*, not the actual object being defined, which is what most people seem to do). So why not just establish a convention that each kind of def has a - counterpart? It does expand the API, but doesn't really increase the cognitive load of trying to remember what's in the API, since one would expect all these - versions to be in there once you learn one. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---