> So I suggest you take it to heart. Put deftype, defrecord and defprotocol > away and don't pull them back out for quite some time. At the beginning, > they are just a distraction from Clojure's core philosophy. Focus on maps, > vectors, sets, functions, multimethods and macros.
But there are just some algorithms that you need to write in a low-level way. (Implementing the data-structures built-in in Clojure would be such an example.) And for this, it you are on the JVM, you want a way to build objects. And then comes deftype. And after 2 hours, you realise that you would like to have traits. (It is quite rare to need them, but very useful when it is the case). -- 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