<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Braces - which style?</title>
	<link>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html</link>
	<description>20 minutes into the future...</description>
	<pubDate>Fri, 08 Aug 2008 18:25:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Jim</title>
		<link>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html#comment-17</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Fri, 22 Oct 2004 04:23:51 +0000</pubDate>
		<guid>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html#comment-17</guid>
		<description>&lt;p&gt;IMHO, for big chunks of code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
if ( x == y ) 
{
  DoSomething();
} else if ( x == y )
{ 
  DoSomethingElse();
} else 
{
}
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;( 2 spaces per indent, 1 space padding )&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
if ( x == y )
  DoSomething();
else
  DoSomethingElse();
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
if ( x == y )      DoSomething();
else if ( x == y ) DoSomethingElse();
else if ( x == y ) DoSomethingElse();
else if ( x == y ) DoSomethingElse();
else if ( x == y ) DoSomethingElse();
else               DoSomethingElse();
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Is OK, as long as there is at least one empty line above and below.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>IMHO, for big chunks of code:</p>

<p><code>
if ( x == y ) 
{
  DoSomething();
} else if ( x == y )
{ 
  DoSomethingElse();
} else 
{
}
</code></p>

<p>( 2 spaces per indent, 1 space padding )</p>

<p><code>
if ( x == y )
  DoSomething();
else
  DoSomethingElse();
</code></p>

<p>or</p>

<p><code>
if ( x == y )      DoSomething();
else if ( x == y ) DoSomethingElse();
else if ( x == y ) DoSomethingElse();
else if ( x == y ) DoSomethingElse();
else if ( x == y ) DoSomethingElse();
else               DoSomethingElse();
</code></p>

<p>Is OK, as long as there is at least one empty line above and below.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dru</title>
		<link>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html#comment-16</link>
		<dc:creator>Dru</dc:creator>
		<pubDate>Fri, 22 Oct 2004 02:15:46 +0000</pubDate>
		<guid>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html#comment-16</guid>
		<description>&lt;p&gt;The empty lines really aren't there. For some reason the PRE tags are doing that.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The empty lines really aren&#8217;t there. For some reason the PRE tags are doing that.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Dekorte</title>
		<link>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html#comment-15</link>
		<dc:creator>Steve Dekorte</dc:creator>
		<pubDate>Fri, 22 Oct 2004 01:58:25 +0000</pubDate>
		<guid>http://www.xxeo.com/archives/2004/10/21/braces-which-style.html#comment-15</guid>
		<description>&lt;p&gt;I like that style to, although I prefer it without the empty lines.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I like that style to, although I prefer it without the empty lines.</p>]]></content:encoded>
	</item>
</channel>
</rss>
