[Techtalk] Weak typing and type bugs (was Re: [Newchix] programming and females)
Kathryn Hogg
kjh at flyballdogs.com
Wed Feb 20 20:18:27 EST 2002
> I can't think of a valid reason to do this though. When I program in
> weakly typed langauges, I behave as if they're strongly typed, and
> don't give a variable multiple types (object oriented "is a" relations
> aside).
>
> Is there some advantage to the above that overcomes the bug-threat or
> is it just sloppiness even though the language allows it?
Generally I wouldn't expect to code like my example on purpose - call it a
bug. ;-) What I was trying to point out is that I could write test cases
that provide 100% code coverage and still not detect a bug that exists
because the bug would dependent on some other previously executed branch.
--
Kathryn
More information about the Techtalk
mailing list