It's not a protocol, but you may want to take a look at
clojure.contrib.generic.arithmetic for inspiration.

I wish you luck in your complex number implementation!  I've done my
own using clojure.contrib.generic and can post if it anyone's
interested.

thanks,
--Robert McIntyre

On Mon, Dec 13, 2010 at 9:55 PM, Sunil S Nandihalli
<sunil.nandiha...@gmail.com> wrote:
> Thanks David .. but is there a protocol that contains +,*,/,- operations? If
> there is one I can simply add those operations...
> Sunil.
> On Tue, Dec 14, 2010 at 7:07 AM, David Nolen <dnolen.li...@gmail.com> wrote:
>>
>> On Mon, Dec 13, 2010 at 8:13 PM, Sunil S Nandihalli
>> <sunil.nandiha...@gmail.com> wrote:
>>>
>>> Hello Everybody,
>>> I see that Konrad-Hinsen's complex-library in the contrib is a very good
>>> fit.. But I am afraid about the performance since the basic operations are
>>> being dispatched using multi-methods... Does anybody have any say on this?
>>> Sunil.
>>
>> Contribute a new library that uses protocols and deftype/record ? :)
>> 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
>
> --
> 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

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