News for hackers. Stuff that matters.
Re:Google broke a conditional statement that verifies passwo... by gavinray on Thursday July 22, 2021 @04:43PM (#27924064)
I was surprised to read that `and`, `and_eq`, `xor`, etc are all supported "secondary/alternative operators"

Never seen them used, but I use them in my C++ code when I have to write it to accomplish something else:

https://en.cppreference.com/w/cpp/language/operator_alternat...

Re:Google broke a conditional statement that verifies passwo... by inetknght on Thursday July 22, 2021 @06:32PM (#27925168)
I used to use them. Then I was burned by some Very Opinionated managers and coworkers who didn't like seeing new things. It wasn't a hill I was willing to die on; there's more important things to argue about in C++.
Re:Google broke a conditional statement that verifies passwo... by josefx on Friday July 23, 2021 @03:51AM (#27928276)
They have been around since the first standard and basically only exist as a hack around an ancient non ascii compatible encoding. So unless you got burned in 1995 nothing about them was new.

They also aren't very consistent between C derived languages. Mostly because C# inherited its versions from VisualBasic, where And is a bitwise operator instead of a short circuiting one.

Re:Google broke a conditional statement that verifies passwo... by inetknght on Friday July 23, 2021 @10:17AM (#27930903)
> * So unless you got burned in 1995 nothing about them was new.*

I didn't mean to imply that they were new features to the language. I meant to imply that they were new style of coding to the manager & coworkers.

Some other features that have burned me from managers & coworkers is `using` to change the visibility of parent class members & functions and CRTP.

Re:Google broke a conditional statement that verifies passwo... by oceanswave on Friday July 23, 2021 @12:32AM (#27927227)
Development is a massive cargo cult
Re:Google broke a conditional statement that verifies passwo... by usefulcat on Thursday July 22, 2021 @11:41PM (#27926940)
I use them, some of them anyway. I find them to be more readable (in particular’not’ instead of ‘!’). Also it means that I can reserve ‘&&’ for rvalue references.