> Hey, > > Has there been discussion about making clojure.lang.IDeref a protocol? > I'd like to extend some java types to this the IDeref interface but > currently this is not possible. I feel like this is such a common > idiom, to get values, and doing so will allow me to leverage the @ > reader macro for many data types. > > Best, > Brent
Someday. The challenge is load order. A lot would have to change to make protocols available early enough in Clojure's bootstrap to allow this. That said, I don't know many Java classes that have value-yielding semantics. And if you are writing your own class, you can implement the IDeref interface. Stu Stuart Halloway Clojure/core http://clojure.com -- 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