Re:Using Zig's translate-C to understand weird C code
by dnautics on Wednesday November 03, 2021 @11:31AM
(#29096057)
I thought the spiral rule was a tongue-in-cheek "rule" that was just made to point out a problem with C.
Re:Using Zig's translate-C to understand weird C code
by klyrs on Wednesday November 03, 2021 @02:12PM
(#29098352)
If it's not wrong...
Re:Using Zig's translate-C to understand weird C code
by bruce343434 on Wednesday November 03, 2021 @07:11AM
(#29093100)
You're right of course. Every language has warts, and declaration, especially involving pointers, is C's. But once you internalize that declaration mirrors usage, together with the spiral rule, it will all immediately become clear. There is some method to the madness.
Perhaps, but the spiral rule is one of the most complicated parts of C. Most things are trivial to someone who knows how to do the thing.