[MPlayer-dev-eng] [bikeshed] Coding style

Michael Niedermayer michaelni at gmx.at
Mon Jun 16 14:38:22 CEST 2008


On Mon, Jun 16, 2008 at 02:29:13PM +0200, Luca Barbato wrote:
> Michael Niedermayer wrote:
> > I do not like spaces, i like ommiting {} if and only if it does
> > cost a extra line. 4 space indention, no tabs (or only tabs),
> > switch&case on the same indention level, ...
> > 
> > if(){
> >     X;
> > }else if(){
> >     Y;
> > }else
> >     Z;
> 
> I find this harder to read for the {} but I'm fine with sparing lines.
[...]
> if we get a 1/2 split on the bracket+spaces I'd go having just that 
> relaxed per file, the readability difference is negligible.

ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080616/fa95af42/attachment.pgp>


More information about the MPlayer-dev-eng mailing list