Re: Why is EMPTY.withMeta(meta()) used instead of just EMPTY in clojure.lang.*?

2012-07-29 Thread Per Mildner
I am sorry, You are correct. I see what you mean. I mis-interpreted meta() as returning an empty meta-map. On Sunday, July 29, 2012 10:26:46 AM UTC+2, Per Mildner wrote: > > Thanks, but the question was not about the empty() methods. > > On Sunday, July 29, 2012 4:14:09 AM UTC+2,

Re: Why is EMPTY.withMeta(meta()) used instead of just EMPTY in clojure.lang.*?

2012-07-29 Thread Per Mildner
Thanks, but the question was not about the empty() methods. On Sunday, July 29, 2012 4:14:09 AM UTC+2, tbc++ wrote: > > > > On Sat, Jul 28, 2012 at 7:47 AM, Per Mildner wrote: > >> Looking at the persistent types in clojure.lang.* (PersistentVector.java >> et al.) I

Why is EMPTY.withMeta(meta()) used instead of just EMPTY in clojure.lang.*?

2012-07-28 Thread Per Mildner
Looking at the persistent types in clojure.lang.* (PersistentVector.java et al.) I see several occurrences of the idiom EMPTY.withMeta(meta()) where EMPTY is a constant (static final) denoting an empty collection of the appropriate type. What I can not understand, given that these types are al