Content deleted Content added
clean up, Added missing comments section header using AWB |
|||
Line 143:
The example demonstrates that Perl '''does not achieve''' dynamic binding through its built-in language constructs. This should be clarified in the text. Probably the same applies to other weakly typed languages (as noted at the beginning of the article).
I propose to remove this example. Alternatively, change it to the above one and explain the issue. Then add an example that demonstrates how in Perl one could implement dynamic binding. <small><span class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Szepi|Szepi]] ([[User talk:Szepi|talk]] • [[Special:Contributions/Szepi|contribs]]) 17:57, 6 February 2010 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
== Polymorphism is not exactly what this article claims it is ==
OK, "totally wrong" as I said in the edit change log is too strong. However, it's common to use "polymorphism" to refer to what's called [[function overloading]] here in Wikipedia, i.e. the ability to have different versions of the same-named function that take different numbers and/or types of arguments. The article here specifically claims that polymorphism is ''not'' function overloading, which is simply wrong. Take a look at many sources, e.g. www.programmersheaven.com/2/FAQ-JAVA-What-Is-Polymorphism (which I can't directly insert a link to) and [http://home.cogeco.ca/~ve3ll/jatutor5.htm], which refer to function overloading as one type of polymorphism. The second refers to the sort of polymorphism as discussed in this article as "dynamic binding polymorphism". See also this classic paper which describes the theoretical background of polymorphism: [http://lucacardelli.name/Papers/OnUnderstanding.A4.pdf]. This paper uses the term "parametric polymorphism" to refer to polymorphism of the function-overloading type. [[User:Benwing|Benwing]] ([[User talk:Benwing|talk]]) 23:55, 12 October 2010 (UTC)
|