3 ms·
I think you're probably right. I think it may be difficult to design a dependent type system that ⓐ easily checks common pointer arithmetic idioms, ⓑ rejects p
by kragen 7y ago
I think you're probably right. I think it may be difficult to design a dependent type system that ⓐ easily checks common pointer arithmetic idioms, ⓑ rejects programs predictably rather than unpredictably, and ⓒ upon rejecting a program, offers clear guidance on how to modify the program so that it can pass (perhaps at the cost of adding an impossible error case or a redundant run-time check). But I'm no expert, so I could be wrong about that.
However, C has quite a bit of ugliness in its own definition, and it might be possible to remove a lot of that.