News for hackers. Stuff that matters.
Re:C "clockwise/spiral" rule to understand declarations by gregkh on Wednesday January 01, 2025 @05:32AM (#42565182)
They hide structures very easily, allowing programmers to accidentally put them on the stack or use them as parameters in functions where they shouldn't be doing so. By forcing "struct" on the name, it makes it more obvious as to what you are doing.
Re:C "clockwise/spiral" rule to understand declarations by pwdisswordfishz on Wednesday January 01, 2025 @05:36AM (#42565201)
That's not a reason not to use typedefs at all.