Hi,

On 5 Nov., 15:40, Konrad Hinsen <[EMAIL PROTECTED]> wrote:
> But does gen-class have to look the way it does? Couldn't the same  
> functionality be provided in a way that looks more like a proper part  
> of the language?

I'm not sure about the form itself. I had look at a CLOS tutorial
and that defclass doesn't look to different in the form the function
is called, a mix of keywords and arguments.

My main concern with gen-class is that it doesn't use the namespace
itself. I posted a patch[1] yesterday which addresses the namespace
and -/_ translation. I rose this also some weeks ago on the list but
there was no response. So the general interest seems to be pretty
low. On the other hand Rich, seems to have something like this on
his TODO list[2]. But maybe everything is different again because
of AOT. So I'm not sure, what his plans are for gen-class right now.

[1]: 
http://groups.google.com/group/clojure/browse_thread/thread/386d90a8b757aee4
[2]: http://richhickey.backpackit.com/pub/1597914

> The current implementation of nth provides a special implementation  
> for each kind of datatype that it knows about, and fails for unknown  
> types. Shouldn't it be possible to add a default case at the end that  
> calls a Clojure multimethod? That shouldn't have any performance  
> impact on the built-in datatypes.

That is a good idea. It would be really cool.

Sincerely
Meikel


--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to