Re: Why no anonymous record types, or (defstruct, create-struct) vs (defrecord, ???)

2011-11-28 Thread Stuart Sierra
There are other possibilities: * using interned Strings as keys will prevent duplicate storage of the keys http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#intern%28%29 * you could make a custom data structure that stores the keys / rows as vectors and generates a sequence of maps

Re: Why no anonymous record types, or (defstruct, create-struct) vs (defrecord, ???)

2011-11-19 Thread Stephen Compall
On Mon, 2011-11-14 at 14:09 -0800, John McDonald wrote: Structmaps can be defined either named, thru the defstruct macro, or anonymously, thru the create-struct function call. Record types must be named and defined thru a call to defrecord. 1.2-style records and types are very different from

Why no anonymous record types, or (defstruct, create-struct) vs (defrecord, ???)

2011-11-14 Thread John McDonald
Structmaps can be defined either named, thru the defstruct macro, or anonymously, thru the create-struct function call. Record types must be named and defined thru a call to defrecord. This seems to contradict one of the Clojure library coding standards