Hi Mark, I am not following your example. Can you post (pseudocode fine) what a good OO impl would look like, and why Clojure's defrecords can't do something similar?
Stu On Thu, Dec 26, 2013 at 9:08 PM, Mark Engelberg <mark.engelb...@gmail.com>wrote: > I do like the way Clojure steers you away from all sorts of unnecessary > OO-nonsense, and provides most of the raw capabilities of OO in other forms. > > However, even if you avoid mutable state, inheritance, and polymorphism, > Classes/objects make great namespaces, and Clojure's namespaces can't do > everything classes can do, for example, cyclic dependencies. This was the > subject of my blog post yesterday. Take a look at the following gist code > for one of the scenarios that frequently drives me up a wall: > > https://gist.github.com/Engelberg/8141352 > > I'd love to hear any tricks you guys use to deal with situations like this > in your own code. > > -- > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.