they're all ints why did fds get left out of the typedef club qwq
@navi @humm Why do yall think that the multiplication of integer types is a good thing?
It's boilerplate, it makes the code less clear, it bloats header files, and if I need to serialize it I need to add a sysdep test to know what size it is. And the benefits of having specific integer types are dubious at best, I've never seen a strong argument for them.
What makes you want fd_t and errno_t over int or, if anything, int32_t?
@navi @humm I agree with almost everything here but if it's specified as an int under the hood, there's no reason for it not to be officially an int.
Boilerplate wasn't the right word; I rather mean burden of knowledge. Mental boilerplate.
Where I disagree is on our perception of clarity. copy_range(int fd_in, int fd_out, size_t size is clear enough to me, and doesn't burden the language with typedefs in order to say the same thing; documentation is obtained by clever use of (completely optional in a prototype) variable names.
Again, I think at this point it's just a question of taste.