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