←back to thread

288 points Twirrim | 1 comments | | HN request time: 0s | source
Show context
kreco ◴[] No.41874966[source]
I'm totally fine with enforcing that int8_t == char == 8-bits, however I'm not sure about spreading the misconception that a byte is 8-bits. A byte with 8-bits is called an octet.

At the same time, a `byte` is already an "alias" for `char` since C++17 anyway[1].

[1] https://en.cppreference.com/w/cpp/types/byte

replies(4): >>41874974 #>>41876119 #>>41876985 #>>41883436 #
1. pests ◴[] No.41883436[source]
> A byte with 8-bits is called an octet

The networking RFC's since inception have always used octet as well.