It's pretty common in the Lisp world at large. For example, Common Lisp's (defstruct foo ...) automatically defines a foo-p predicate.
-Per On Fri, Mar 19, 2010 at 7:53 PM, Konrad Hinsen <konrad.hin...@fastmail.net> wrote: > On 19.03.2010, at 13:50, Per Vognsen wrote: > >> It would still be nice to have an auto-generated name?-style predicate >> in deftype, I think. > > I haven't yet made my mind up about this. I have used such auto-generated > predicates in my unit library (http://code.google.com/p/clj-units/) for > dimension testing, but I may take them out again. What I dislike about this > approach is def-ing a symbol inside a macro that is not spelled out > explicitly by the user of that macro. This can easily cause namespace > pollution of invisible origin. > > Konrad. > > -- > 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 > > To unsubscribe from this group, send email to > clojure+unsubscribegooglegroups.com or reply to this email with the words > "REMOVE ME" as the subject. > -- 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 To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.