Markus,

What does the provided URL have to do with anything?

It provides a bit more background information on the evolution for the
support of variable declarations within compound statements, doesn't it?
http://stackoverflow.com/questions/288441/variable-declaration-placement-in-c

It is a discussion by people not involved in creating the C Standard
about why they thought the change was made.

As somebody who was involved I can tell you that the reason for the
change was compatibility with C++.

The reason for the original restriction was a belief that mixing
statements/declarations made code less readable (which may or
may not be true, I don't know of any empirical evidence one way
or the other).

--
Derek M. Jones                  tel: +44 (0) 1252 520 667
Knowledge Software Ltd          blog:shape-of-code.coding-guidelines.com
Software analysis               http://www.knosof.co.uk


_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to