On Thu, Aug 25, 2011 at 11:40 AM, Stuart Halloway
<stuart.hallo...@gmail.com> wrote:
>> Has there been discussion about making clojure.lang.IDeref a protocol?
>
> Someday. The challenge is load order. A lot would have to change to make
> protocols available early enough in Clojure's bootstrap to allow this.

Thinking outside of the box, what about exposing a low level ability
to define a Java interface separately somewhere, then erect the rest
of the machinery of a protocol around it later? Then IDeref can be
just an interface early in bootstrap, but be protocolized late in
bootstrap and available in protocol form thereafter. (This could also
be applicable to potentially-more-useful interfaces like IFn, ISeq,
and Associative, too.)

-- 
Protege: What is this seething mass of parentheses?!
Master: Your father's Lisp REPL. This is the language of a true
hacker. Not as clumsy or random as C++; a language for a more
civilized age.

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