Re:Why Timothy Cain creator of Fallout left Fallout 2 during...
by derefr on Saturday May 27, 2023 @09:05PM
(#36100108)
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()
Re:Why Timothy Cain creator of Fallout left Fallout 2 during...
by AugurCognito on Sunday May 28, 2023 @03:43AM
(#36102001)
Shouldn't the last statement be:
if: y > x, do: nothing(), else: foo()
Re:Why Timothy Cain creator of Fallout left Fallout 2 during...
by rurban on Sunday May 28, 2023 @10:42AM
(#36104392)
Nope, order of evaluation might matter with impure code.
i.e. two tests, or perhaps i should say logical operations. i'm not saying don't use '<=', but do check that it is doing what you think it should.