I've got no clue, so I would just do the experiment. If it works out well, tell us why. If it's a disaster, tell us what didn't work.
Sean On Feb 7, 3:57 pm, James Reeves <weavejes...@googlemail.com> wrote: > Hi folks, > > Would those more knowledgable about Clojure care to weigh in on > whether it be a good idea to create a custom class inheriting from > IDeref? I've been considering creating session proxy objects (to be > later replaced with protocols) that would respond to deref calls, e.g. > > (def session > (proxy [IDeref] [] > (deref [this] > (read-session (.store this))) > (store [this] > {:type ::memory-store}))) > > Is this a good idea, or is it considered bad practice to use IDeref in > anything apart from core Clojure concurrently primitives? > > - 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