I noticed an inconsistency with refs and get:

(def ref-map (ref {:a 1, :b 2}))

(ref-map :a)
=> 1

(get ref-map :a)
=> nil

Now I haven't seen any documentation that getting the value of a ref
without a @/deref is supported at all, so maybe this isn't supported.
But if those forms are supported, both forms should return the same
value, and if it isn't supported, I think they should throw
exceptions.

I'm willing to write patches either way.

Allen
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to