This would be interesting:

(defn foo
  ([#^String x] (dosomething))
  ([#^Number x] (dosomethingelse))
  ([x] (dodefault)))

I realize that I can do essentially the same thing with multimethods
and I realize that type hints were not meant for this and I realize
that there is likely an implication that escapes me, but a man can
dream right?

-m


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