Dreaming of new generation IDE

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Feb 3 16:43:26 EST 2010


On Wed, 03 Feb 2010 10:39:53 -0500, Adam Tauno Williams wrote:

> On Wed, 2010-02-03 at 16:23 +0100, Stef Mientki wrote:
>>         Yes, it certainly does.  Not that you'll get many Pythonistas
>>         to confess
>>         to that fact.  Somehow those who brag about the readability and
>>         expressiveness of source code just cannot admit that:
>>         class.method(sting name, int count)
>>         - is *obviously* more expressive than - class.method(name,
>>         count)
>>         Oh, well.
>>         This is obvious even in the Python documentation itself where
>>         one
>>         frequently asks oneself "Uhh... so what is parameter X supposed
>>         to be...
>>         a string... a list... ?"
> 
>> But I thought that was the one of beauties of Python, you don't need to
>> know if the input parameter is a list or a string.
> 
> You don't need to know; unless of course you want the expected result.


Says who? If you're free to assume the function requires a certain type, 
we're free to assume the function is polymorphic and doesn't.




-- 
Steven



More information about the Python-list mailing list