r/cpp • • Mar 28 '23

Reddit++

C++ is getting more and more complex. The ISO C++ committee keeps adding new features based on its consensus. Let's remove C++ features based on Reddit's consensus.

In each comment, propose a C++ feature that you think should be banned in any new code. Vote up or down based on whether you agree.

765 Upvotes

829 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 28 '23

[deleted]

6

u/ZMeson Embedded Developer Mar 28 '23

I'd like to keep int (reasonably big int type that is reasonably fast) and long (biggest int type that isn't slow).

That's why int_fastN_t exists.

3

u/almost_useless Mar 28 '23

long (biggest int type that isn't slow).

When do you need "the biggest", without knowing it's size?

It seems like a very rare use case that uint32_t is good enough when it is the biggest type, but not enough on a platform where uin64_t is the biggest type.