On Sun, May 20, 2012 at 2:16 PM, nicolas.o...@gmail.com <nicolas.o...@gmail.com> wrote: > I had wished such a feature all week. > You don't need it often, but when you need it, it is really annoying > to circumvent. > traits would really be useful.
If you find yourself wanting traits you are using defrecord, deftype, and defprotocol too often. If everything has the same implementation for X, should X really be polymorphic on the type? shouldn't it just be another function? If you find yourself using a polymorphic mechanism like protocols or interfaces to give different types the same behavior then you need to go back to the drawing board. > -- > 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 -- And what is good, Phaedrus, And what is not good— Need we ask anyone to tell us these things? -- 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