<?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: VB.NET boolean operators and short-circuit evaluation</title>
	<atom:link href="http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/</link>
	<description>Rails, Firefox, Anime, Mac</description>
	<lastBuildDate>Sat, 04 Feb 2012 15:38:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: dean</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-513648</link>
		<dc:creator>dean</dc:creator>
		<pubDate>Wed, 27 Feb 2008 10:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-513648</guid>
		<description>its annoying, but the reason is an old one. historically logical operators in vb are also used for bitwise expressions - they should have broken this when creating vb.net, but i guess they were worried about code conversions</description>
		<content:encoded><![CDATA[<p>its annoying, but the reason is an old one. historically logical operators in vb are also used for bitwise expressions &#8211; they should have broken this when creating vb.net, but i guess they were worried about code conversions</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Tan</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-395380</link>
		<dc:creator>David Tan</dc:creator>
		<pubDate>Mon, 17 Dec 2007 01:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-395380</guid>
		<description>You are definately not the first to find this a bit bizarre. Having no VB background and coming from other language makes this AndAlso / OrElse sounds a bit clumsy, and funny :)</description>
		<content:encoded><![CDATA[<p>You are definately not the first to find this a bit bizarre. Having no VB background and coming from other language makes this AndAlso / OrElse sounds a bit clumsy, and funny :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dot Net Books</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-152502</link>
		<dc:creator>Dot Net Books</dc:creator>
		<pubDate>Sun, 15 Apr 2007 13:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-152502</guid>
		<description>Since most developers using VB.NET used earlier versions of VB, and most new developers will probably use C#, doesn&#039;t it make sense to leave the way it operates?</description>
		<content:encoded><![CDATA[<p>Since most developers using VB.NET used earlier versions of VB, and most new developers will probably use C#, doesn&#8217;t it make sense to leave the way it operates?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonali</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-140503</link>
		<dc:creator>sonali</dc:creator>
		<pubDate>Mon, 26 Mar 2007 12:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-140503</guid>
		<description>i want to write a code in VB.NEt in 2003 that will sync my outlook events &amp; contacts list to my application.

Kindly Suggest various solution for the same..

thanx</description>
		<content:encoded><![CDATA[<p>i want to write a code in VB.NEt in 2003 that will sync my outlook events &amp; contacts list to my application.</p>
<p>Kindly Suggest various solution for the same..</p>
<p>thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-59385</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 07 Nov 2006 18:52:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-59385</guid>
		<description>VB.NET&#039;s non-short circuit boolean expresssions hark back partly to when user defined functions were starting to be used. If you have a boolean expression that short circuits and its made up of functions then

&quot;if boolfooa() or boolfoob() then
....&quot;

wont eval boolfoob() if boolfooa() returns true. I think (?) thats the main use.</description>
		<content:encoded><![CDATA[<p>VB.NET&#8217;s non-short circuit boolean expresssions hark back partly to when user defined functions were starting to be used. If you have a boolean expression that short circuits and its made up of functions then</p>
<p>&#8220;if boolfooa() or boolfoob() then<br />
&#8230;.&#8221;</p>
<p>wont eval boolfoob() if boolfooa() returns true. I think (?) thats the main use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Pallett</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1953</link>
		<dc:creator>Dennis Pallett</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1953</guid>
		<description>I haven&#039;t got a clue why they designed it like this. I do know that I&#039;m really enjoying PHP and its short-circuit evaluation though! :)</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t got a clue why they designed it like this. I do know that I&#8217;m really enjoying PHP and its short-circuit evaluation though! :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chadom</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1954</link>
		<dc:creator>Chadom</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1954</guid>
		<description>Agree with Dennis. In VBscript/ASP when get a value from data base, need two lines to test if it is a &quot;valid&quot; value :
if (not isnull(foo)) and foo&gt;&quot;&quot; then
...
will crash if foo is null (second part is eval and null can&#039;t be compare with a string). Very ugly.

</description>
		<content:encoded><![CDATA[<p>Agree with Dennis. In VBscript/ASP when get a value from data base, need two lines to test if it is a &#8220;valid&#8221; value :<br />
if (not isnull(foo)) and foo>&#8221;" then<br />
&#8230;<br />
will crash if foo is null (second part is eval and null can&#8217;t be compare with a string). Very ugly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cheah Chu Yeow</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1952</link>
		<dc:creator>Cheah Chu Yeow</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1952</guid>
		<description>Well, I can&#039;t say we are forced to use VB.NET - I have a feeling the lecturer would be open to using C#. He has even allowed the use of Flash for the GUI project we&#039;re doing.</description>
		<content:encoded><![CDATA[<p>Well, I can&#8217;t say we are forced to use VB.NET &#8211; I have a feeling the lecturer would be open to using C#. He has even allowed the use of Flash for the GUI project we&#8217;re doing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Segraves</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1951</link>
		<dc:creator>Stephan Segraves</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1951</guid>
		<description>Wait, isn&#039;t the whole point of .NET to allow the programmer to choose what language he wants to work with and be able to make group projects using that language? Kind of seems like your instructor is killing that idea...</description>
		<content:encoded><![CDATA[<p>Wait, isn&#8217;t the whole point of .NET to allow the programmer to choose what language he wants to work with and be able to make group projects using that language? Kind of seems like your instructor is killing that idea&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinnie</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1950</link>
		<dc:creator>Vinnie</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1950</guid>
		<description>You&#039;d pick up on C# fast; it&#039;s a lot like Java, just with a different framework attached to it. I wouldn&#039;t use it on your current project since everyone else would have no idea what&#039;s going on in your code, but something to keep in mind in the future.</description>
		<content:encoded><![CDATA[<p>You&#8217;d pick up on C# fast; it&#8217;s a lot like Java, just with a different framework attached to it. I wouldn&#8217;t use it on your current project since everyone else would have no idea what&#8217;s going on in your code, but something to keep in mind in the future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cheah Chu Yeow</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1949</link>
		<dc:creator>Cheah Chu Yeow</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1949</guid>
		<description>&lt;strong&gt;Vinnie&lt;/strong&gt;: Good idea why didn&#039;t I think of that earlier - now I&#039;m far too committed to VB.NET because all the labs have been in VB.NET and I don&#039;t really want to spend time on picking up C# (though it shouldn&#039;t be too hard, I think). Besides, everyone else is using VB.NET and there&#039;s a group project going.

&lt;strong&gt;Dennis&lt;/strong&gt;: &lt;em&gt;Slightly&lt;/em&gt; annoying? I think that is very annoying! You wouldn&#039;t happen to know why VB was designed this way, would you?</description>
		<content:encoded><![CDATA[<p><strong>Vinnie</strong>: Good idea why didn&#8217;t I think of that earlier &#8211; now I&#8217;m far too committed to VB.NET because all the labs have been in VB.NET and I don&#8217;t really want to spend time on picking up C# (though it shouldn&#8217;t be too hard, I think). Besides, everyone else is using VB.NET and there&#8217;s a group project going.</p>
<p><strong>Dennis</strong>: <em>Slightly</em> annoying? I think that is very annoying! You wouldn&#8217;t happen to know why VB was designed this way, would you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Pallett</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1948</link>
		<dc:creator>Dennis Pallett</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1948</guid>
		<description>I wish VBScript/ASP had OrElse and AndElse.

It&#039;s slightly annoying to do:
If IsEmpty(Request.QueryString(&quot;id&quot;)) = False Then
	If IsNumeric(Request.QueryString(&quot;id&quot;)) = True Then
		&#039;The id is valid
	Else
		&#039;The id is not empty, but not numeric
	End If
Else
	&#039;The id is empty
End If

Instead of being able to do:
If IsEmpty(Request.QueryString(&quot;id&quot;)) = False And IsNumeric(Request.QueryString(&quot;id&quot;)) = True Then
	&#039;The id is valid
Else
	&#039;The id is either empty or not numeric
End If

(The second method would give an error of id contained letters)</description>
		<content:encoded><![CDATA[<p>I wish VBScript/ASP had OrElse and AndElse.</p>
<p>It&#8217;s slightly annoying to do:<br />
If IsEmpty(Request.QueryString(&#8220;id&#8221;)) = False Then<br />
	If IsNumeric(Request.QueryString(&#8220;id&#8221;)) = True Then<br />
		&#8216;The id is valid<br />
	Else<br />
		&#8216;The id is not empty, but not numeric<br />
	End If<br />
Else<br />
	&#8216;The id is empty<br />
End If</p>
<p>Instead of being able to do:<br />
If IsEmpty(Request.QueryString(&#8220;id&#8221;)) = False And IsNumeric(Request.QueryString(&#8220;id&#8221;)) = True Then<br />
	&#8216;The id is valid<br />
Else<br />
	&#8216;The id is either empty or not numeric<br />
End If</p>
<p>(The second method would give an error of id contained letters)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinnie</title>
		<link>http://blog.codefront.net/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/comment-page-1/#comment-1947</link>
		<dc:creator>Vinnie</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/archives/2004/01/25/vbnet-boolean-operators-and-short-circuit-evaluation/#comment-1947</guid>
		<description>Now why won&#039;t your teachers just let you use C#? ;)

In any case, I think Or is still around because that&#039;s all that VB6 and earlier developers had. OrElse was just added in for VB.NET, and VB still has a lot of backward-compatible syntax that isn&#039;t necessary with the .NET framework.</description>
		<content:encoded><![CDATA[<p>Now why won&#8217;t your teachers just let you use C#? ;)</p>
<p>In any case, I think Or is still around because that&#8217;s all that VB6 and earlier developers had. OrElse was just added in for VB.NET, and VB still has a lot of backward-compatible syntax that isn&#8217;t necessary with the .NET framework.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

