Typing system vs. Java

Christopher Barber cbarber at curl.com
Wed Aug 1 15:44:07 EDT 2001


<brueckd at tbye.com> writes:

> On 1 Aug 2001, Christopher Barber wrote:
>> One problem I remember having was that I was writing library code and had to
>> write explicit run-time type-checking code to check the types of incoming
>> arguments.
> 
> But why? ...

Maybe it just comes down to personal preference.  I have written code in quite
a number of languages but have always preferred to declare types when I have
had the chance.  I know that it has brought me benefits in my own development
work, and you are not going to convince me otherwise.  I fully believe in
writing as comprehensive unit tests as you can, but I also know from
experience that it is virtually impossible to catch everything this way.  I
would not want to force static type declarations down anyone else's throat
but it would be nice if they were available to those that wanted to use them.

You didn't respond to my comments on potential for performance gains.  Can I
assume that I scored a point?  ;-)

- Christopher



More information about the Python-list mailing list