Bools and explicitness [was Re: PyWart: The problem with "print"]
Mark Janssen
dreamingforward at gmail.com
Thu Jun 6 23:30:02 EDT 2013
> Fairly definitive terms have existed since 1985:
> http://lucacardelli.name/Papers/OnUnderstanding.A4.pdf
>>
>> You are making an "outside view of a function" (until a better term is
>> found). So that give you one possible view of polymorphism. However,
>> *within* a class that I would write, you would not see polymorphism
>> like you have in C++, where it is within the *function closure*
>> itself. Instead you would see many if/then combinations to define
>> the behavior given several input types. I would call this simulated
>> polymorphism.
>
> Cardelli and Wegner cited above call this ad-hoc polymorphism.
> What you are calling polymorphism, they call universal polymorphism.
Okay, THANK YOU for the reference. The main thing to note is that
there is a difference. Those terms sound good enough.
--
MarkJ
Tacoma, Washington
More information about the Python-list
mailing list