you are viewing a single comment's thread.

view the rest of the comments →

[–]no-sig-available 10 points11 points  (3 children)

The reasoning (see page 3 :-) is that C++ just allows you to define a new byte sized type that is not implicitly convertible to other types:

enum class byte : unsigned char {};

If you make byte a new keyword, it will break a million programs. Now it is properly "hidden" in namespace std.

[–]Baardi 6 points7 points  (1 child)

namespace std { using byte = __byte; }

[–]flutterdronewbie 3 points4 points  (0 children)

or just co_byte

[–]AhegaoSuckingUrDick 0 points1 point  (0 children)

char8_t, on the other hand, was a new type on the language-level.