News for hackers. Stuff that matters.
Re:C++23: The Next C++ Standard by duped on Wednesday July 12, 2023 @12:31AM (#36690501)
Built in types are special. The compiler needs to define operator precedence and certain semantics (commutativity, associativity, overflow, etc) that cannot be expressed in the type system or enforced by the interface.

The fact that it makes syntax "nicer" for user defined types is at best subjective and at worst an anti-pattern because it leads to bad compiled code and confused programmers. Function calls are unambiguous and follow the same rules as other function calls, while operator overloading does not.

There are no comments on this comment yet.