#is it safe to rely on operations to short circuit in order to not mess up a program?
6 messages · Page 1 of 1 (latest)
if you mean "is || guaranteed to not execute the second parameter when the first one evaluates to true" then yes
although keep in mind that logic with mutable state like this is hard to follow
in my actual program i use iterators, but i didn't want to drop all that in here so i smashed this out :)