Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

[flagged]


Can you explain why---what is it about this style that puts you off?


What's wrong with it?


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.


> 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".


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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: