3 ms·
But this is code obviously without side effect.
by thfuran 3y ago
But this is code obviously without side effect.
- hardware2win 3y agoThere are side effects, but in real world, not abstract
- thfuran 3y agoNo, that code has no side effects. The implementation is free to produce whatever side effects it wants or needs as part of execution, but that is absolutely none of the compiler's business.
- dkersten 3y agoSo non-obvious side effects? You can say that about any code at all, so no optimising would ever be possible. The program running faster is a side effect after all.