Placement of variable declarations in C
Posted Oct 26, 2007 15:46 UTC (Fri) by
giraffedata (subscriber, #1954)
In reply to:
An interesting historical artifact by RobSeace
Parent article:
A potential competitor for GCC: pcc
I don't tolerate variables declared outside the scope in which they are used (and you should see how easy it is to move code around and split functions when you observe this rule). And I don't use the index variable of a for structure outside of the structure, so I saw the invention of the internally declared index as a great advancement. My blocks and functions are too short for anything to be spread willy-nilly throughout them.
(
Log in to post comments)