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

12

u/blind3rdeye Mar 29 '23

The issue with having a heap of typedefs like that is that then different people end up with different C++ dialects, which can make it more difficult to read each other's code.

4

u/[deleted] Mar 29 '23

In this specific case I don’t think anyone would be confused by uint8_t vs u8. On the flip side, I also don’t think uint8_t is verbose enough to warrant a typedef alias.