Re: Attaching metadata to defrecord fields

2010-07-11 Thread Quzanti
Hi Pedro That's one idea isn't it. And I suppose you could write a macro for a 'metarecord' to generate both Foo and FooDefinition from a single concise and convenient definition? At the other end of the scale there is always the option of a naming convention - ducks-Set-Of-Birds etc!! Charles.

Re: Attaching metadata to defrecord fields

2010-07-11 Thread Pedro Henriques dos Santos Teixeira
On Sun, Jul 11, 2010 at 11:45 AM, Quzanti wrote: > Thanks Michał > > You did understand my intention, and it was the former non-existent > case I was referring to. > > I wanted to attach metadata about type, field arity etc in the > definition of the record type so that I could write some tools to

Re: Attaching metadata to defrecord fields

2010-07-11 Thread Quzanti
Thanks Michał You did understand my intention, and it was the former non-existent case I was referring to. I wanted to attach metadata about type, field arity etc in the definition of the record type so that I could write some tools to do intelligent conversion between record structures. Charles

Re: Attaching metadata to defrecord fields

2010-07-11 Thread Michał Marczyk
On 11 July 2010 14:30, Quzanti wrote: > Please could someone tell me the preferred way of attaching field > (key?) specific metadata in a defrecord definition? I'm not sure if I understand your intention correctly, but if I do, then there is no such thing. If the fields of a particular instance o

Attaching metadata to defrecord fields

2010-07-11 Thread Quzanti
Hello Please could someone tell me the preferred way of attaching field (key?) specific metadata in a defrecord definition? And how to I extract this metadata on a field by field basis? Thank you -- You received this message because you are subscribed to the Google Groups "Clojure" group. To p