News for hackers. Stuff that matters.
Re:Relive: 50 years of C, the good, the bad and the ugly by thesuperbigfrog on Friday December 30, 2022 @01:50PM (#34188431)
So true.

I wish that C had a more rich way to define struct layouts and low-level representations for integral types.

I really like how Ada does it:

https://en.wikibooks.org/wiki/Ada_Programming/Representation...

If you need to read or write specialized hardware registers, being able to define a data structure with a custom representation is very nice and can save significant time and effort.

Re:Relive: 50 years of C, the good, the bad and the ugly by timbit42 on Sunday January 01, 2023 @11:50AM (#34207944)
I wish C had never been born.