Matthew Weier O'Phinney wrote:
I've run into problems with brace-less blocks many, many times over
the years. Clearly, enough other people have as well that any serious
coding standard includes a clause requiring that all blocks use
braces. I see no reason to add another context in which braces could
be omitted.
It's nice to hear that it is not only me ...
Brought to mind a problem that popped up in a patch earlier this year. Not my
patch, but the contributor had missed that brackets were missing, and his fix
worked for him, but the following statement was now enabled in the wrong place.
FORTUNATELY this was manually merged, and the mistake spotted, but with the
increasing use of automatic merges ... I think I would support making brackets
compulsory.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php