Re: [PATCH] maint: document dislike of mismatched if/else bracing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 05, 2011 at 11:07:28AM -0700, Eric Blake wrote:
> * docs/hacking.html.in (Curly braces): Tighten recommendations to
> disallow if (cond) one-line; else { block; }.
> * HACKING: Regenerate.
> Suggested by Daniel P. Berrange.
> ---
> 
> > > since HACKING documents that an else clause should only ever omit braces
> > > when the if clause also omitted braces, but an if clause can omit braces
> > > even when the else clause requires them.
> > Hmm, I didn't notice that. I really don't like to see braces in
> > else clauses, without also seeing braces in the if, and have
> > been fixing this to add braces whenever I come across it.
> 
> Fine by me - how does this look?

Looks good to me.

Daniel

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]