|
|
|
|
|
by benj111
15 days ago
|
|
> x = (x + 2step) % width Hmm. now. Is operator precedence not an instance of hidden flow control? You need to know that 2step is done before adding x. x = (x + (2step)) % width
Or
x = ( 2step + x) % width Should be preferred? Personally I try to bracket all things like this, so that it isn't hidden. |
|
Compare to what people usually call hidden control flow (exceptions, RAII, ...) where you don't know which parts of the code will run unless you read the definitions of the classes and bodies of the functions you use. The syntax at the call site is not enough to tell.