Content deleted Content added
Workaphobia (talk | contribs) |
Workaphobia (talk | contribs) |
||
Line 71:
I understand that polymorphism is completely different from overloading, therefor, I think the comments relating both concepts should be removed from the article. [[User:Ramiromagalhaes|Ramiro Pereira de Magalhães]] ([[User talk:Ramiromagalhaes|talk]]) 14:27, 11 January 2009 (UTC)
: Actually... This is at odds with the content of the article on [[Type_polymorphism]], which claims that overloading is a form of ad hoc polymorphism. My compilers and programming languages classes (both grad level) agree with the type polymorphism article, so I think we need to distinguish between these different uses of the term "Polymorphism". The cited reference in this article for claiming that they are not the same is Bjarne Stroustrup, and within the context of C++ such a comment makes total sense because they are completely different language features implemented in completely different ways. But it would appear that, as a property of languages in a more formal sense, polymorphism is broader than just subtype substitutability. I'd like to see that paragraph altered to recognize the distinction. [[User:Workaphobia|Workaphobia]] ([[User talk:Workaphobia|talk]]) 17:57, 15 April 2009 (UTC)▼
▲This is at odds with the content of the article on [[Type_polymorphism]], which claims that overloading is a form of ad hoc polymorphism. My compilers and programming languages classes (both grad level) agree with the type polymorphism article, so I think we need to distinguish between these different uses of the term "Polymorphism". The cited reference in this article for claiming that they are not the same is Bjarne Stroustrup, and within the context of C++ such a comment makes total sense because they are completely different language features implemented in completely different ways. But it would appear that, as a property of languages in a more formal sense, polymorphism is broader than just subtype substitutability. I'd like to see that paragraph altered to recognize the distinction.
== C# code commentary ==
|