On Fri, Sep 16, 2011 at 2:26 PM, Stephan Beal <sgb...@googlemail.com> wrote:

> Hi!
>
> Which of these is more correct for fossil's code style for if/else's which
> have only a single expression:
>
> if( ... ) continue;
> else break;
>
> or
>
> if( ... ){
>   continue;
> }else{
>   break;
> }
>

The second is correct.  The one with {}



>
> (hypothetical example)
>
> The question only applies to single-expression if/else/for/while/etc. For
> others it's clear.
>
> To be clear: i'm not going to argue either way, i just want to conform.
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to