News for hackers. Stuff that matters.
Re:Porting to GCC 14: C language issues by LeFantome on Monday February 19, 2024 @03:26PM (#39434374)
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.

Re:Porting to GCC 14: C language issues by dzaima on Monday February 19, 2024 @04:55PM (#39435310)
"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".
Re:Porting to GCC 14: C language issues by WalterBright on Monday February 19, 2024 @08:34PM (#39437018)
> 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.