FW: [Mono-list] Class Library coding standards

Patrik Torstensson Patrik.Torstensson@framfablabs.com
Wed, 18 Jul 2001 22:31:51 +0200


> -----Original Message-----
> From: Patrik Torstensson 
> Sent: den 18 juli 2001 22:31
> To: 'Garrett Rooney'
> Subject: RE: [Mono-list] Class Library coding standards
> 
> 
> It's the other way around for me ;-)
> 
> It doesn't really matter but I think the code becomes easier 
> to read and you don't have different rules for the {}.
> 
> Just my 2c.. 
> 
> - Patrik
> 
> -----Original Message-----
> From: Garrett Rooney [mailto:rooneg@electricjellyfish.net] 
> Sent: den 18 juli 2001 22:29
> To: Patrik Torstensson
> Cc: Sean MacIsaac; mono-list@ximian.com
> Subject: Re: [Mono-list] Class Library coding standards
> 
> 
>  
> > And:
> > 			if (bar (5) > 10) 
> > 			{
> > 				val = false;
> > 			} else
> > 			{
> > 				val = true
> > 			}
> 
> i have no problem with any of the other suggestions, but this 
> looks really ugly.  i would very much prefer
> 
> if (bar > 10) {
> 	val = false;
> } else {
> 	val = true;
> }
> 
> -- 
> garrett rooney                     Unix was not designed to 
> stop you from 
> rooneg@electricjellyfish.net       doing stupid things, 
> because that would  
> http://electricjellyfish.net/      stop you from doing clever things.
>