Would you consider autoboxing in Java to be a form of polymorphism? Put another way, do you think autoboxing extends the polymorphic capabilities of Java?
What about implicit conversions in Scala?
My opinion is that they are both examples of polymorphism. Both features allow values of different data types to be handled in a uniform manner.
My colleague disagrees with me. Who is right?
From Wikipedia:
Implicit conversions in Scala are conversions. One object gets converted to another object.
Autoboxing is the creation of an object (again, a conversion).
Therefore, these are not polymorphism.