|
|
|
|
|
by treyd
62 days ago
|
|
> you should design it so that your language is easily and correctly statically checked. You do that by making the type system more sophisticated. If you have a really important invariant that you really don't want to be violated due to run-time behavior/input, it's a huge benefit to have a compiler that can statically check that it actually can't be. That's one of the main benefits of having type systems, not just describing the shape of data structures in memory. |
|
C is a bad language to do this with for various reasons, but as a simple example:
There is absolutely no reason why static analysis should not be able to see what the problem is here.