Reader metadata syntax vs. (with-meta ...)

4 views
Skip to first unread message

Tomasz

unread,
Jan 8, 2009, 9:34:07 AM1/8/09
to Clojure
Hi.

I'm just wondering wether it's a feature or a bug:

(if (= (meta (with-meta [] {:test-key true}))
(meta #^{:test-key true} []))
"same"
"not same")

=>

"not same"

This behaviour is repeatable for empty lists, vectors and maps. Is
this intentional? Nonempty collections work as expected.

Tomasz

Chouser

unread,
Jan 9, 2009, 10:55:14 PM1/9/09
to clo...@googlegroups.com

Looks like a bug. I've created an issue to track it, thanks:

http://code.google.com/p/clojure/issues/detail?id=39

--Chouser

Reply all
Reply to author
Forward
0 new messages