News for hackers. Stuff that matters.
Re:32 years on, K&R's "The C Programming Language" still sta... by tzs on Tuesday April 06, 2010 @07:52PM (#1245994)
The first, for a couple reasons, but that's not relevant. My point was that I see no advantage or even plausible case for having declaration syntax be different from use syntax.

If C made us declare foo using the second format you gave, we'd still have to write, e.g., ((foo[12][3])())[7] in the code where we are actually trying to use foo.

Can you look at a declaration in the second format, and compare to where the variable is used, and see quickly if the usage is correct? With the current declaration format, it's easy--because declaration and usage use the same format.

There are no comments on this comment yet.