I am aware that there are functions for seeing history count, min
count etc.
Why is the actual history hidden?
For example, if there is a ref:
(def a (ref 1))
(dosync (alter a 2))
(dosync (alter a 3))
(ref-history-ocunt a)
=>2
a
=>3

Why this is not allowed?:
(ref-history a)
=> (2 1)

If I am right, Ref implementation stores that information in tvals
field which is package protected, and no methods are provided for
accessing it. Of course, I could implement a subclass of Ref or access
it reflectively in java and then write history function, but why it is
not in the clojure core?
Is this on purpose (and what is the reason), or it's just that nobody
thought that would be useful?

Of course, I am talking about the read-only access to the history.
-- 
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

Reply via email to