3 ms·
Is it the numbers you do not like? If you use “long long”, it must not be the length. I don’t love long long. As an amateur compiler writer, it hurts me. “long
by LeFantome 3y ago
Is it the numbers you do not like? If you use “long long”, it must not be the length.
I don’t love long long. As an amateur compiler writer, it hurts me. “long long” makes “long” both a modifier ( like unsigned is ) and a type. Yuck.
I wish it was i8, i16, i32, and i64 ( with u versions of each ). f32 and f64 for floats. Those are easy to understand and fairly easy on the eyes.
If those numbers are too noisy, the CIL ( .NET ) types could work. For example, i4 and i8 instead of i32 and i64. I do no love the look of i1 either though. I guess you could special case sbyte and byte as aliases.
- dzaima 3y ago"long" is always a modifier, just potentially applied twice, and potentially to nothing. A more written out version of "long long" is "long long int", and similarly "long" is really "long int".
- WalterBright 3y ago> Is it the numbers you do not like? Correct. > fairly easy on the eyes Not for me. It's a personal thing, I just don't like it. When I removed them all from my code, it was like I'd scraped the barnacles off my boat.