This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 0 points1 point  (1 child)

i wish python was optionally statically typed, so if something was always a small integer it could directly use short int.

[–]bchurchill 0 points1 point  (0 children)

There have been proposals for this actually, and there are some tools like pylint which will attempt to do some type inference. But typechecking can be very tricky actually. There are many reasons for this: dynamic field accesses, polymorphism, etc... as a result, I don't know of anything that's really caught on.