News for hackers. Stuff that matters.
Re:Structures in C: From Basics to Memory Alignment by gerdesj on Thursday June 29, 2023 @07:37PM (#36528330)
"The only good reason to "

The word opinionated was coined and adopted in English to describe a certain attitude. It has functioned fine for (probably) centuries (who knows, and I can't be bothered to research too far). Then came the age of IT and blow me, are we not opinionated to the point of ridiculousness.

A sentence construction along the lines of "The only good reason to" [do x] "is" [y], seems to invite a negation, quite aggressively. You might as well stand in the rain, wearing steel armour, and holding a long copper rod ... and shout "All Gods are bastards" (as a Knight of the Realm, sadly deceased, from hereabouts suggested might be an unwise life shortening decision).

I'm pretty sure packed structures have other uses.

Re:Structures in C: From Basics to Memory Alignment by juunpp on Friday June 30, 2023 @12:08AM (#36530407)
Good call. Such statement implies that there is no other reason, as obvious as that might sound. Just say "One reason to" to avoid implying that's the only one.

> I'm pretty sure packed structures have other uses.

Like reducing memory footprint.

Re:Structures in C: From Basics to Memory Alignment by RobotToaster on Friday June 30, 2023 @06:00AM (#36532519)
>I'm pretty sure packed structures have other uses.

And if you want to learn of them, there is no faster way.