On 02/09/2014 12:00, Mark Rotteveel wrote: > On Tue, 02 Sep 2014 11:43:54 -0300, Adriano dos Santos Fernandes > <adrian...@gmail.com> wrote: >> On 02/09/2014 11:35, Dimitry Sibiryakov wrote: >>> Hi, All. >>> >>> When was decided that one-line blocks must not be enclosed with >>> parentheses? It is a >>> rather dangerous style... >>> >> It's not, it was not and it will never be a dangerous style. >> >> Everything is dangerous if you write code without attention. > Yes, but it makes a hell of a lot easier to get wrong. Remember the goto > fail bug: > > https://www.imperialviolet.org/2014/02/22/applebug.html
Happened one time in the history. > Braces around single statements would have made this bug less likely. > > You consider the people who write: goto fail; goto fail; Was with a good mind to write code? Was really the braces the problem? Adriano ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel