Oh. I forgot.

It could also be helpful to have an easy access (meta information, for
example) to the
fields (and their types) of a record type.

On Thu, Aug 12, 2010 at 7:57 PM, Nicolas Oury <nicolas.o...@gmail.com> wrote:
> I have been thinking of that too.
>
> The approach of extending with maps is great but lacks of access to
> the content of the instance variables of the type.
>
>
> (def Foo [bar]
>
> )
>
> (extend
>  clever-automatic-construction
> )
>
> As far as I know, clever-automatic-construction cannot use bar in its
> implementation.
> Which might be a bit annoying, because you have to rely on the
> interface of the implementor of one thing
> to implement another interface.
> Maybe creating a getBar automatically could help?
>
> Or there are other ways to work around that?
>
> Best,
> Nicolas.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to