什么定义了 Clojure 中的 "persistent" 数据结构?
What defines a "persistent" data structure in Clojure?
http://clojure.org/data_structures 页面将所有 Clojure 集合解释为 "immutable and persistent"。我一直在寻找 "persistent" 在这种情况下的确切含义的明确定义,是否有人对此有明确的解释?
它指的是与 this 维基百科文章相同的持久性。总结:
In computing, a persistent data structure is a data structure that
always preserves the previous version of itself when it is modified.
Such data structures are effectively immutable, as their operations do
not (visibly) update the structure in-place, but instead always yield
a new updated structure. (A persistent data structure is not a data
structure committed to persistent storage, such as a disk; this is a
different and unrelated sense of the word "persistent.")
http://clojure.org/data_structures 页面将所有 Clojure 集合解释为 "immutable and persistent"。我一直在寻找 "persistent" 在这种情况下的确切含义的明确定义,是否有人对此有明确的解释?
它指的是与 this 维基百科文章相同的持久性。总结:
In computing, a persistent data structure is a data structure that always preserves the previous version of itself when it is modified. Such data structures are effectively immutable, as their operations do not (visibly) update the structure in-place, but instead always yield a new updated structure. (A persistent data structure is not a data structure committed to persistent storage, such as a disk; this is a different and unrelated sense of the word "persistent.")