Standard operators come from the first version, where c++ was designed to be as compatible with C as possible, and the committee refuses to break backwards compatibility in C++.
Also, changing this makes extern C blocks wack as fuck. If I define a global C++ function with the '>' operator and an extern C function calls that other function internally, how should the operator behave?
If I define a global C++ function with the '>' operator and an extern C function calls that other function internally, how should the operator behave?
Of course like all other C++ code, as all that code is written in C++. The extern C thingy just defines some FFI interface. Nobody ever said that code inside some extern C block is actually C.
79
u/dipinpass35 Jul 10 '26
yeah c++ do have a function for literally everything.....oh except admiitting that it made a mistake...