Re: Associating metadata with keywords

2008-10-07 Thread Stephen C. Gilardi
On Oct 7, 2008, at 3:19 AM, Matthew D. Swank wrote: > This seems strange: > (with-meta :foo {:type 'id}) > [is an error] From http://clojure.org/metadata: Symbols and collections support metadata, a map of data about the symbol or collection Keywords are not symbols in Clojure and

Associating metadata with keywords

2008-10-07 Thread Matthew D. Swank
This seems strange: (with-meta :foo {:type 'id}) causes: java.lang.IncompatibleClassChangeError (NO_SOURCE_FILE:0) [Thrown class clojure.lang.Compiler$CompilerException] Restarts: 0: [ABORT] Return to SLIME's top level. 1: [CAUSE] Throw cause of this exception Backtrace: 0: clojure.lang.C