|
|
|
|
|
by pansa2
450 days ago
|
|
> So don't do this then? Don't do what? - Don't write unsound code? There's no way to know until you run the program and find out your `int` is actually a `list`. - Don't assume type annotations are correct? Then what's the point of all the extra code to appease the type checker if it doesn't provide any guarantees? |
|
You may as well argue that unit tests are pointless because you could cheat by making the implementations return just the hardcoded values from the test cases.