You might find this post helpful: https://github.com/Prismatic/eng-practices/blob/master/clojure/20130926-data-representation.md
It describes (my perspective on) the various Clojure data representation methods, their pros and cons, and some guidelines on when each may be appropriate. -Jason On Thursday, December 12, 2013 11:48:51 AM UTC-8, Tim wrote: > > Thanks for the responses. > > I took a look at your project and found it to be more useful than any > documentation I've seen on deftype, so thanks for linking to it. > > Tim > > On Thursday, December 12, 2013 2:20:21 PM UTC-5, James Reeves wrote: >> >> gen-class is really there just for compatibility with Java. deftype >> should be preferred. >> >> Here's a project of mine where I create a custom type and data reader, if >> you want an example: >> https://github.com/weavejester/crumpets<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fweavejester%2Fcrumpets&sa=D&sntz=1&usg=AFQjCNFAbFSPOo7A60iH9ecMtaG1asRquw> >> >> However, it feels like you're looking for a solution in the wrong place. >> I obviously don't know the precise problem you're trying to solve, so I may >> be completely wrong, but the example code you've shown so far seems a >> little odd. >> >> - James >> >> >> -- -- 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.