• 0 posts
  • 10 comments
Joined 3 years ago
Cake day: June 29th, 2023
  • As a computational physicist, I appreciate operator overloading IF used properly.
    Example of a good use: + for matrix addition
    Example of a bad use: left shift operator << as a pipe
    I still don’t understand who’s in the C++ committee that they would choose this garbage over a function

  • I think the main advantages over C are:

    • better tooling
    • modern syntax
    • by default, pointers must be non-null. You have to specify if you want to use null pointers
    • better exception handling using the functional style of exceptions-as-values

    There are probably more, but those are the ones I remember.