Newbie: static typing?

Antoon Pardon antoon.pardon at rece.vub.ac.be
Tue Aug 6 09:57:26 EDT 2013


Op 06-08-13 15:27, Burak Arslan schreef:
> On 08/06/13 13:12, Rui Maciel wrote:
>> Joshua Landau wrote:
>>
>>> What's the actual problem you're facing? Where do you feel that you
>>> need to verify types?
>> A standard case would be when there's a function which is designed expecting 
>> that all operands support a specific interface or contain specific 
>> attributes.
>>
>> In other words, when passing an unsupported type causes problems.
>>
> 
> Hi,
> 
> First, let's get over the fact that, with dynamic typing, code fails at
> runtime. Irrespective of language, you just shouldn't ship untested
> code, so I say that's not an argument against dynamic typing.

Why not? Can ease of development not be a consideration? So if some
kind of faults are easier to detect at compile time if you have static
typing than if you have to design a test for them, I don't see why that
can't be an argument.

-- 
Antoon Pardon



More information about the Python-list mailing list