11 ms·
Are we still spreading that canard where type errors are somehow some kind of bugbear in Python? It's not a profound part of writing code in Python for anybody
by codewright 14y ago
Are we still spreading that canard where type errors are somehow some kind of bugbear in Python?
It's not a profound part of writing code in Python for anybody that's spent more than a few weeks with it.
- mercurial 14y agoA profound part? Maybe not. However, I noticed yesterday that a provisioning tool I wrote was blowing because I was assigning by mistake an empty string coming from a CSV instead of a None value to an integer field in an sqlalchemy model. That's a bug a static type system would have found.
- donri 14y agoAlmost every exception a Python program ever throws is or can be made a type error (or otherwise statically caught) in Haskell and similar languages. A type error is not the same thing as a TypeError.
- sbmassey 14y agoWhen someone dumps a large Python codebase on you, it is significantly harder to figure out how it works than with a statically typed program, since it is harder to figure out what types to use and are returned by any given function call.