by DaiPlusPlus · 9y ago · 0 comments
Are there any situations where unsafe code cannot be avoided at all, where there exists a program-theory proof that unsafe code must be used?
If it's for performance reasons, then a new safe language construct could be introduced to replace it - such as how a safe range-based loop eliminates the need for bounds-checking with fixed-length arrays.