On Feb 12, 6:12 pm, Laurent PETIT <laurent.pe...@gmail.com> wrote:
> Do you know if there's a way to overload methods with the same arity, then ?
>
> I'm thinking about .read(char ) .read(byte ) .read(String ) .read(Integer )
> ... for example,  ?

I think they're all the same method, from the Clojure point of view.
If you want different behavior, you have to check the type in your
function or use a multimethod.

-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to