Hacker News new | ask | show | jobs
by DinoCoder99 851 days ago
I'd much prefer C users not use long at all. What's wrong with size_t and uint32_t and uint64_t?
1 comments

> What's wrong with size_t and uint32_t and uint64_t?

An extra #include and more typing?

Plus, all the C89 users are out of luck...

It's trivial to roll your own basic <stdint.h> with those types for existing C89 implementations.

Unless they don't provide the corresponding type natively at all (which can be the case for some 16-bit platforms and 64-bit). But then you have a bigger problem anyway.

Only with effort Linux was able to be ported to Clang. All compilers that compile Linux should also be able to deal with size_t and consorts.