<?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: javascript; sending me insane</title>
	<atom:link href="http://project-2501.net/index.php/2010/01/javascript-sending-me-insane/feed/" rel="self" type="application/rss+xml" />
	<link>http://project-2501.net/index.php/2010/01/javascript-sending-me-insane/</link>
	<description>The net is vast and infinite.</description>
	<lastBuildDate>Sun, 25 Mar 2012 04:54:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tom Dignan</title>
		<link>http://project-2501.net/index.php/2010/01/javascript-sending-me-insane/comment-page-1/#comment-16880</link>
		<dc:creator>Tom Dignan</dc:creator>
		<pubDate>Sun, 04 Jul 2010 01:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://project-2501.net/?p=228#comment-16880</guid>
		<description>This is an empty list, evaluating to an empty list.

&gt;&gt;&gt; [] 
[]           

This is false, because an empty list is empty, for this reason, js decides its more similar to
false than true. Since 0 is typically false, and one is typically true in computer programming.

&gt;&gt; [] == true
false

Since == is testing for equality.. And true is not false...

&gt;&gt; true == false
false

Since == is testing for equality, and false is false.

&gt;&gt;&gt; false == false
true

when programming in a weakly typed language always be cognizant of types that are automatically coerced into other types during operations like this.</description>
		<content:encoded><![CDATA[<p>This is an empty list, evaluating to an empty list.</p>
<p>&gt;&gt;&gt; []<br />
[]           </p>
<p>This is false, because an empty list is empty, for this reason, js decides its more similar to<br />
false than true. Since 0 is typically false, and one is typically true in computer programming.</p>
<p>&gt;&gt; [] == true<br />
false</p>
<p>Since == is testing for equality.. And true is not false&#8230;</p>
<p>&gt;&gt; true == false<br />
false</p>
<p>Since == is testing for equality, and false is false.</p>
<p>&gt;&gt;&gt; false == false<br />
true</p>
<p>when programming in a weakly typed language always be cognizant of types that are automatically coerced into other types during operations like this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk (Requested URI is rejected)
Database Caching 1/7 queries in 0.005 seconds using disk
Object Caching 263/278 objects using disk

Served from: project-2501.net @ 2012-05-20 07:44:34 -->
