3 ms·
What point is there in deleting side-effect free loops though? Literally the only use for those is to trap the control flow.
by pingyong 7y ago
What point is there in deleting side-effect free loops though? Literally the only use for those is to trap the control flow.
- bluGill 7y agoThe only intentional use. However when writing generic code you often have code lines that after several levels of code inline reduce to that example.
- pingyong 7y agoSo, generic code with a loop, which, depending on parameters, sometimes has side effects and sometimes doesn't, and in the case that it doesn't have side effects it is still not easy to recognize if the loop terminates? I suppose that is possible, although I'm having a hard time coming up with any reasonable examples.