Hi,
soon I want to look at a simple x+y. But those x+y can have various
types and I don't think that for the case of having int for x and y it
is really good to have a method like this:
static int plus(Integer x, Integer y){return x+y;}
and I wonder further if I should really provide methods for all
combinations of byte, char, int, short even though they are more or less
handled as int in bytecode. Counting all versions I would have some 49
methods.
What do you guys advise to do here?
bye Jochen
--
Jochen "blackdrag" Theodorou - Groovy Project Tech Lead
blog: http://blackdragsview.blogspot.com/
german groovy discussion newsgroup: de.comp.lang.misc
For Groovy programming sources visit http://groovy-lang.org
--
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com.
To unsubscribe from this group, send email to
jvm-languages+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en.