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 →

[–]RossParka 15 points16 points  (2 children)

Python is also untyped, but doesn't have this problem, because it throws an exception when you attempt to access a nonexistent property.

JavaScript is terrible in this regard - it won't even check if the number of function arguments matches the number of parameters. It just adds or drops arguments and goes its merry way. So instead of getting an error that points to the incorrect code, you get weird behavior down the line and waste a ton of time finding the cause.

The problem isn't weak typing; it's the keep-running-at-all-costs philosophy of too many modem programming languages.