We always talk about auto promoting ops, is there a way, and I guess the answer will be no, to have auto demoting ops? as in they get (+ (num 1) (num 1)) and return (long 2) if the calling side desires so? As in the function promises to return a Number or better.
I know this might die on the fact that we need to head with the JVM but technically this should be possible right? it is like caller of + says: I'd like one of those: long, double, Integer, Number (in this order) and the the functions satisfies it to it's best capabilities, here it would be long. Not sure if that would make any sense or is even possible within the JVM but it sounds kind of cool doesn't it? Regards, Heinz -- 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