Even C++11 is pretty old. I would recommend at least C++17
- 0 Posts
- 4 Comments
Joined 9 months ago
Cake day: February 5th, 2026
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Whoa whoa whoa, you can’t just call someone that
Like all of the footguns in C++, it’s only a problem if the codebase uses it wrong. When used correctly (i.e. only when behaviours mimic built-in types, and without side effects), it helps makes code more readable
Don’t do what numpy does, which is to define * for two arrays. Without learning the library, you wouldn’t know whether this performs element-wise multiplication, matrix multiplication, dot product or cross product. Worse yet, it behaves differently to Python’s built-in * for lists (which is also bad), which concatenates N copies of the list



A few examples:
std::pair<int, int> myPair{ 1, 2 }, you just writestd::pair myPair{ 1, 2 }[](auto it){ /* do something */ })const char*