<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: switch() &#8211; the better if() ?</title>
	<atom:link href="http://blog.hma-info.de/2008/04/15/switch-the-better-if/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hma-info.de/2008/04/15/switch-the-better-if/</link>
	<description>Fabians random thoughts about work and private life</description>
	<lastBuildDate>Sat, 02 Jul 2011 11:40:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Fabian</title>
		<link>http://blog.hma-info.de/2008/04/15/switch-the-better-if/comment-page-1/#comment-4350</link>
		<dc:creator>Fabian</dc:creator>
		<pubDate>Fri, 18 Apr 2008 19:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/?p=66#comment-4350</guid>
		<description>Thanks Guildenstern for explaining me via IM why you actually do want to do such crazy switches in hardware design :-)
But thats no excuse for doing it in software, ran by regular compilers and interpreters.</description>
		<content:encoded><![CDATA[<p>Thanks Guildenstern for explaining me via IM why you actually do want to do such crazy switches in hardware design <img src='http://blog.hma-info.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
But thats no excuse for doing it in software, ran by regular compilers and interpreters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guildenstern</title>
		<link>http://blog.hma-info.de/2008/04/15/switch-the-better-if/comment-page-1/#comment-4255</link>
		<dc:creator>Guildenstern</dc:creator>
		<pubDate>Tue, 15 Apr 2008 21:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.hma-info.de/?p=66#comment-4255</guid>
		<description>I have seen this in C# code.... however the default statement was commented out BUT that great developer added an additional comment. The whole thing looked like this:

&lt;pre class=&quot;prettyprint&quot;&gt;
case true:
//(some code ...)

case false:
//(some code ...)

//are there any other states than true or false in C#?

//default:
//(some exception handling code ...)

//NOTE: This has been uncommented, because otherwise it does not compile
&lt;/pre&gt;

:-D

That developer doesn&#039;t work for my company any more. 

PS: Hardware Developers are used to use switch over if statements in VHDL and verilog because the synthesiser will really create a parallel structure.</description>
		<content:encoded><![CDATA[<p>I have seen this in C# code&#8230;. however the default statement was commented out BUT that great developer added an additional comment. The whole thing looked like this:</p>
<pre class="prettyprint">
case true:
//(some code ...)

case false:
//(some code ...)

//are there any other states than true or false in C#?

//default:
//(some exception handling code ...)

//NOTE: This has been uncommented, because otherwise it does not compile
</pre>
<p> <img src='http://blog.hma-info.de/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p>That developer doesn&#8217;t work for my company any more. </p>
<p>PS: Hardware Developers are used to use switch over if statements in VHDL and verilog because the synthesiser will really create a parallel structure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

