News for hackers. Stuff that matters.
Re:Google broke a conditional statement that verifies passwo... by gene91 on Thursday July 22, 2021 @05:22PM (#27924508)
This is a typo of missing an ampersand. If the author were writing Ada, it would have been a typo of missing a “then”. How is it different?
Re:Google broke a conditional statement that verifies passwo... by Cthulhu_ on Friday July 23, 2021 @04:31AM (#27928500)
It's different because in C it changes a boolean comparison to a bitwise one. Is Ada's `and` a bitwise and?
Re:Google broke a conditional statement that verifies passwo... by gpderetta on Friday July 23, 2021 @05:12AM (#27928718)
For bool there is no difference between bitwise and and logical and.

There is a difference between short-circuiting and non short-circuiting and, hence the distinct operators.