Re: Transient Bug

2009-12-20 Thread Stephen C. Gilardi
On Dec 19, 2009, at 7:50 PM, Chouser wrote: I've updated http://clojure.org/transients to reflect vectors and hash-map support of 'transient' in 1.1.0 Hash-sets appear to work in 1.1.0 as well. --Steve -- You received this message because you are subscribed to the Google Groups Clojure

Re: Transient Bug

2009-12-20 Thread Sean Devlin
Could we also include some words explicitly stating that the sorted versions are not supported in 1.1.0? Sean On Dec 20, 11:56 am, Stephen C. Gilardi squee...@mac.com wrote: On Dec 19, 2009, at 7:50 PM, Chouser wrote: I've updatedhttp://clojure.org/transientsto reflect vectors and hash-map

Transient Bug

2009-12-19 Thread Sean Devlin
Hey, I was experimenting with transients, and they don't seem to work for sorted collections: user= (transient (sorted-map 1 2 3 4)) java.lang.ClassCastException: clojure.lang.PersistentTreeMap cannot be cast to clojure.lang.IEditableCollection (NO_SOURCE_FILE:0) user= (transient (sorted-set 1 2

Re: Transient Bug

2009-12-19 Thread David Nolen
IIRC, you can use transient only with maps and vectors. David On Sat, Dec 19, 2009 at 8:46 AM, Sean Devlin francoisdev...@gmail.comwrote: Hey, I was experimenting with transients, and they don't seem to work for sorted collections: user= (transient (sorted-map 1 2 3 4))

Re: Transient Bug

2009-12-19 Thread Stephen C. Gilardi
I was experimenting with transients, and they don't seem to work for sorted collections: user= (transient (sorted-map 1 2 3 4)) java.lang.ClassCastException: clojure.lang.PersistentTreeMap cannot be cast to clojure.lang.IEditableCollection (NO_SOURCE_FILE:0) user= (transient (sorted-set

Re: Transient Bug

2009-12-19 Thread Sean Devlin
Steve, I've been checking out the Java, and it looks the same to me. I think this raises a couple issues: 1. Should sorted versions get transient support in 1.1? 2. The docs should be updated to reflect the 1.1 status of transients. Sean On Dec 19, 10:23 am, Stephen C. Gilardi