Cedric's is the approach I would take. Like he said, use private functions for the shared code.
On Wed, Feb 8, 2012 at 8:49 PM, Cedric Greevey <cgree...@gmail.com> wrote: > Is there a reason not to just use protocols for your mixins? > > (defprotocol Labelled > whatever) > > (defprotocol Textfield > whatever-else) > > (defprotocol Datetimepicker > something) > > (defrecord Label > Labelled > whatever ...) > > (defrecord Textbox > Textfield > whatever-else ...) > > (defrecord LabelledTextbox > Labelled > whatever ... > Textfield > whatever-else ...) > > and so forth, and probably punt to external fns for anything that > would otherwise get duplicated between Textbox and LabelledTextbox, or > between Label and LabelledTextbox, and so forth. > > -- > 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