News for hackers. Stuff that matters.
Re:C++23: The Next C++ Standard by mhh__ on Tuesday July 11, 2023 @01:22PM (#36684193)
Admittedly I grew up after their introduction but I've always viewed the whining about overloading the shift operators quite pointless.

Of all the things C++ annoys me with, I don't care that much about syntax.

Re:C++23: The Next C++ Standard by tomcam on Tuesday July 11, 2023 @01:42PM (#36684499)
My guess is you never had to parachute into a project using operator overloading in strange, inconsistent, and undocumented ways with no original maintainers to show you the ropes
Re:C++23: The Next C++ Standard by mhh__ on Tuesday July 11, 2023 @02:08PM (#36684905)
After all it's impossible to do this with regular code
Re:C++23: The Next C++ Standard by amalcon on Tuesday July 11, 2023 @04:36PM (#36686891)
I actually like operator overloading, but overloading the shift operators for I/O was still a mistake IMO. It's a mistake even if you ignore that it's a theoretical misuse (I/O and binary shifting have nothing to do with each other semantically). The operator precedence of the binary shift operators is just wrong for I/O.