D
dj3vande
Flash Gordon said:
Is ugliness a problem? I guess ugliness is in the eye of the beholder.
For exact-width types, I actually lean toward considering ugliness a
Good Thing.
Most people who think they need exact-width types are wrong, and making
them as ugly and inconvenient as possible discourages their use (which
on the whole is a Good Thing); but when you actually do need them (I've
recently written otherwise- portable code that does, to handle
serializing and deserializing data structures for storage in files
(portably) or transmission over a network (system-specific)), it's
rather nice to have standardized names rather than having to write (a
subset of) C99's <stdint.h> for every C90 implementation I want to
use.
(ntohl and htonl would be nice to have standardized for the same
reason, though some thought would have to be put into whether they work
on bytes, or octets, or low-octet-of-each-byte, or...)
dave