Re: Making clojure.lang.IDeref a protocol

2011-08-25 Thread Brent Millare
> 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. There aren't many value-yielding semantics from many java classes, but the ones I care about, do matter. Also, in my case, I'm adding v

Re: Making clojure.lang.IDeref a protocol

2011-08-25 Thread Ken Wesson
On Thu, Aug 25, 2011 at 11:40 AM, Stuart Halloway wrote: >> Has there been discussion about making clojure.lang.IDeref a protocol? > > Someday. The challenge is load order. A lot would have to change to make > protocols available early enough in Clojure's bootstrap to a

Re: Making clojure.lang.IDeref a protocol

2011-08-25 Thread Stuart Halloway
> 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

Making clojure.lang.IDeref a protocol

2011-08-25 Thread Brent Millare
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 macr