|
|
|
|
|
by iofj
3969 days ago
|
|
Of course you can. You can, for instance, include an automatically verified proof that your code terminates for finite inputs. This is in fact where the newest academic languages are going. In dependantly typed languages bounds checks are only done in theory. you have to include a proof that your indexes are within bounds, and the compiler verifies that proof. If it checks out, it compiles. If not, back you go. Far safer than java/go and the like and far faster than c++. These languages tend to allow pointer arithmetic too, for beating it in speed is almost impossible. |
|