3 ms·
The original design doesn't fall apart, because it allowed multiple prefixes - LONG INT, LONG LONG INT etc - from the get go, specifically so that the list of t
by int_19h 8y ago
The original design doesn't fall apart, because it allowed multiple prefixes - LONG INT, LONG LONG INT etc - from the get go, specifically so that the list of types could be extended arbitrarily. It's not the most concise or descriptive way to name them, but that's an issue distinct from extensibility.
Personally, I think that rather than focusing on number of bits for numeric types, type systems should focus on the valid range of values, more along the lines of Pascal and Ada.
- tagrun 8y ago"long long" is proof that it falls apart. Short/long were descriptive, meaningful adjectives, and in the context of 3 integers of different sizes, it made sense. "long long" isn't a descriptive or meaningful adjective. It's not even a real word. Luckily, there are signs that this will stop. Non-standard 128-bit integers are called __int128_t rather than "long long long".