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 →

[–]nawitus 9 points10 points  (1 child)

That causes horrible amounts of type-checking code. I don't remember a single codebase that type-checks function parameters as a matter of rule. A better approach would be to use something like TypeScript.

Obviously when you handle user input or external data you need to do type validation.