On Tue, May 17, 2011 at 5:52 PM, jlk <lachlan.kana...@gmail.com> wrote:

> (proxy2  [String]
> AProtocol?
> (theseBehaveAsStringsWithThisAdded [] ...)
>
> leaving regular Strings unaffected?


The problem is that Java is inherently and early-bound design. It's
difficult to do efficient composition a la Objective-C where you can just
forward a method to some other object.

JDK 7 introduced invokeDynamic which could possibly help w/ this issue but
sadly there is no hook through the Java language. Perhaps Clojure could
provide such a hook, but this seems very JDK 7 centric.

David

-- 
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