Re:Modern C for C++ Peeps
by heywhatupboys on Saturday January 07, 2023 @04:40PM
(#34293154)
_t is even a "reserved" suffix in C. Stop using it. If you want compile-time type safety, pick another language like Haskell. A "typedef" is by no means a contract declaration in C.
[ Parent
| on HN ]
No it is not reserved, it's just posix's personal style guides.
There's just as much of a name clash possibility when not using _t because lots of other libraries and platforms uses some other convention.
Only ISO C can reserve things, no one else, and ISO C does not reserve the _t suffix.
Re:Modern C for C++ Peeps
by heywhatupboys on Sunday January 08, 2023 @12:24PM
(#34301002)
I think it is pedantic to say that POSIX's guidance is not the de-facto C standard, or at least that the union of rules between ISO and POSIX