Repository navigation
Conversation
* use familiar `time_t`, `off_t`, `pid_t`... * remove `__` prefixes from library function argument names
|
This will require some discussion. What I liked in the current situation is that it keep the C2 model of user-types correct, they all start with a Capital. Using time_t drags in the old (anti) pattern of _t to indicate some type and breaks the naming. So I would rather pull libc forward, instead of letting it drag C2 backwards.. |
|
I understand your goal, but I'm afraid redefining all legacy types is a real obstacle to adoption. C2 is supposed to be an evolution of C, not a revolution. Renaming legacy types goes against 2 of the documented goals:
Smooth integration with C libraries is already very challenging, and may ultimately require parsing the existing header files, which means using the existing type names. Changing common type names makes C2 harder to use for experienced programmers and harder to port existing programs to. I also don't really agree that Also these legacy types are not user types, but standard types and system types. user types are still restricted in their naming scheme. The case of
|
time_t,off_t,pid_t...__prefixes from library function argument names