Even C++11 is pretty old. I would recommend at least C++17
- 0 Posts
- 4 Comments
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
glibg10b@lemmy.zipto
Fediverse@lemmy.world•Reddit's r/opensource bans AI slop, and quite a few humans for good measureEnglish
2·7 days agoand has at least three contributors, give or take
You can’t make a minimum approximate. Does two contributors count? Just for some, but not others? This just gives them more leeway to include bias in the decision to ban someone

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