> I disagree. When you understand what's happening (Refs implement IFn
> by dispatching, just like Vars), you see that it has nothing to do
> with obtaining the value of a ref without deref, and get can't work
> since it doesn't take a ref.
>

Thanks for the explanation. Since get can't work because it doesn't
take a ref, why should (get ref-map :a) return nil? To me, that seems
like a case of failing silently. get should raise an exception when
called with invalid arguments, just like every other function.

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