3 ms·
> & and | are routinely used for their non-shortcircuiting behaviour in boolean expressions Really? I can't recall a single case of this with 'bool' in any cod
by dataflow 5y ago
> & and | are routinely used for their non-shortcircuiting behaviour in boolean expressions
Really? I can't recall a single case of this with 'bool' in any codebase in my recent memory. I only see it with integers. And even if it's somehow routine for your codebases with bool (why?!), surely it's not routine inside a conditional expression, so at least they can prohibit it there?
- kevin_thibedeau 5y agoWhenever I see it I assume it's a typo. If it was truly intentional I would expect a comment pointing out why it's needed.