Ugly? Aww, I thought the ^ metadata looked kinda cute... It is a bit awkward that defn- exists and not def-, but it seems defs are not going to be as common as defns (though I'll admit I haven't written or read enough complex idiomatic Clojure code to know for sure). And if you really want to be consistent you would probably also want defmulti-, defmacro-, defstruct-, defprotocol-, etc. And I'll have to stop using tiny fonts to read Clojure code so I can tell if something is private or not.
If we really wanted to make it easy to write private functions, variables, etc, I would personally prefer a macro like (private) for which all forms inside would be made private. Like (private (def my-private-foo (...)) (defn my-private-bar [] (...))) Not only does that seem more clear, it would encourage the private stuff to be separate from public stuff. On Jan 22, 10:27 am, Stuart Halloway <stuart.hallo...@gmail.com> wrote: > Please don't. It has already been discussed and declined. The metadata is > uglier because we want doing this to be slightly ugly.. > > Stu > > Stuart Halloway > Clojure/corehttp://clojure.com > > > > > > > > > I think a def- definitely belongs in core for consistency reasons. > > So I'm writing a ticket and patch now. > > > Cheers, Benjamin > > > -- > > 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 > > Note that posts from new members are moderated - please be patient with > > your first post. > > 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 -- 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 Note that posts from new members are moderated - please be patient with your first post. 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