manually? did we lose macros?

On Tue, Jun 29, 2010 at 12:54 AM, Mark Engelberg
<mark.engelb...@gmail.com> wrote:
> On Sun, Jun 27, 2010 at 7:18 AM, Rich Hickey <richhic...@gmail.com> wrote:
>> There are no extension points built on protocols in Clojure yet. Delivering
>> protocols is step one, re-architecting the core abstractions in terms of
>> protocols is still to come.
>>
>> Rich
>
> So how hard it would it be right now, for example, to implement in
> Clojure a deftype that responds to all the functions a sorted map
> responds to?
>
> I started looking through the source code to try to figure out what
> interfaces I'd need to override, but it seemed like an overwhelming
> mixture of Clojure and Java interfaces, and very difficult to get
> right without the ability to use the existing abstract base classes
> that are in place (AFn, ASeq, APersistentMap, etc.).  For example, it
> seems like to implement IFn, you'd need to manually write out cases
> for the first twenty arities.
>
> Would you recommend waiting until the core abstractions are
> re-architected before tackling something like this, or is there an
> easy way to do this I'm not seeing?
>
> Thanks.
>
> --
> 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



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

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