Quentin Rameau wrote:
> Humm, why should I exactly?
> 
> if(fullscreen) {
>       if(!c->isfullscreen)
> } else if(c->isfullscreen)
> 
> against
> 
> if(fullscreen && !c->isfullscreen)
> else if (!fullscreen && c->isfullscreen)
> 
> For me the second form is less understandable and has more unnecessary checks.

Heyho Quentin,

the second form saves one indentation level, two lines and allows to understand
the else if condition without having to read the if condition first.

--Markus

Reply via email to