3 ms·
By that logic, one could never do a refactor and be confident it didn’t change program behavior. Luckily, a program and it’s refactored version aren’t two arbit
by layer8 3y ago
By that logic, one could never do a refactor and be confident it didn’t change program behavior. Luckily, a program and it’s refactored version aren’t two arbitrary, unrelated programs. You can generally prove if the transformations that convert one into the other keep the semantics unchanged. Conversely, one should only ever apply transformations for which this is true.