Re:Google broke a conditional statement that verifies passwo...
by dataflow on Thursday July 22, 2021 @05:04PM
(#27924318)
I used to only put short-circuits when I really needed short-circuit behavior, thinking it improved readability. But after getting by the implicit type conversions over and over (as well as nags from every compiler) I just decided it was a bad idea in C++. I'd still do it in a safer language, but in C++ I'm convinced you should just use && even when you only need & for bools.
[ Parent
| on HN ]
There are no comments on this comment yet.