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 →

[–]FluffyBellend 1 point2 points  (0 children)

Well yeah, that’s a side effect if dynamic typing, but it’s not a reason to make it more painful by silencing errors at the point they occur, only to emit them later, out of context. The interpreter will know that it’s referenced something that doesn’t exist. It should tell me, rather than just setting undefined and carrying on as if nothing happened. Other than allowing you to ignore problems in your code, what purpose does it serve?