top | item 37815783

(no title)

petabytes | 2 years ago

What's wrong with it?

discuss

order

superchroma|2 years ago

Well, from a team perspective, it's extremely opinionated and hostile to newcomers and messes with core language features at the expense of readability. If it's your personal codebase then do whatever, obviously.

aportnoy|2 years ago

> extremely opinionated

I have not seen a single codebase that widely uses uint8_t and does not typedef it to u8. It is the exact opposite of "extremely opinionated".

loeg|2 years ago

It doesn't mess with a core language feature to alias 'u8' to 'uint8_t'. It's a reasonable use for the name and one used in other languages (e.g., Rust). There's nothing in the C standard that defines or uses the 'u8' name.

Dylan16807|2 years ago

Opinionated? Was there something else you wanted u8 to mean?