2 ms·
Let me put it another way: the following are the same code: if: x <= y, do: foo(), else: nothing() if: y < x, do: nothing(), else: foo()
by derefr 3y ago
Let me put it another way: the following are the same code:
if: x <= y, do: foo(), else: nothing()
if: y < x, do: nothing(), else: foo()
- AugurCognito 3y agoShouldn't the last statement be: if: y > x, do: nothing(), else: foo()
- rurban 3y agoNope, order of evaluation might matter with impure code.
- rowanG077 3y agoHow exactly? Well there is an extreme case where x and y are volatile but even then the order is implementation defined so I can't see a world where it matters.