<?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"
	>
<channel>
	<title>Comments on: Logical operators in Perl and Ruby</title>
	<atom:link href="http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/</link>
	<description>Eli Bendersky's personal website</description>
	<pubDate>Fri, 21 Nov 2008 13:52:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Anthony Ettinger</title>
		<link>http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-123401</link>
		<dc:creator>Anthony Ettinger</dc:creator>
		<pubDate>Thu, 03 Jul 2008 22:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-123401</guid>
		<description>It safe to say lower precedence can be useful when mixed with the higher precedence:

[code]
if (  healthy &#38;&#38; wealthy or poor &#38;&#38; broke  )  {
    $result &#124;&#124;= q{ the same };
}
[/code]</description>
		<content:encoded><![CDATA[<p>It safe to say lower precedence can be useful when mixed with the higher precedence:</p>
<p>[code]<br />
if (  healthy &amp;&amp; wealthy or poor &amp;&amp; broke  )  {<br />
    $result ||= q{ the same };<br />
}<br />
[/code]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eliben</title>
		<link>http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-53315</link>
		<dc:creator>eliben</dc:creator>
		<pubDate>Sat, 02 Jun 2007 20:28:48 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-53315</guid>
		<description>From your comment and others on Reddit I realize that some parts of this article could have been understood as a criticism of Perl and Ruby, which wasn't my intention. Perl and Ruby are two of my most favorite languages, and I wrote the article in an attempt to understand the motivation behind things, not to disapprove in any way. I edited the article to remove the problematic portions.

As for your comment, it was probably messed up because you tried to use a HTML tag in the text without enclosing it in a 'pre' or 'code' tag. I have a plugin that auto-escapes HTML tags inside 'code'. 

You are right about auto-preview, although as this requires extensive Wordpress tinkering it will have to wait :-)</description>
		<content:encoded><![CDATA[<p>From your comment and others on Reddit I realize that some parts of this article could have been understood as a criticism of Perl and Ruby, which wasn&#8217;t my intention. Perl and Ruby are two of my most favorite languages, and I wrote the article in an attempt to understand the motivation behind things, not to disapprove in any way. I edited the article to remove the problematic portions.</p>
<p>As for your comment, it was probably messed up because you tried to use a HTML tag in the text without enclosing it in a &#8216;pre&#8217; or &#8216;code&#8217; tag. I have a plugin that auto-escapes HTML tags inside &#8216;code&#8217;. </p>
<p>You are right about auto-preview, although as this requires extensive Wordpress tinkering it will have to wait <img src='http://eli.thegreenplace.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Fish</title>
		<link>http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-53310</link>
		<dc:creator>Shlomi Fish</dc:creator>
		<pubDate>Sat, 02 Jun 2007 19:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-53310</guid>
		<description>Sorry, my previous comment was messed up. Please fix your blogging software, or at least allow a preview for the blog entries.</description>
		<content:encoded><![CDATA[<p>Sorry, my previous comment was messed up. Please fix your blogging software, or at least allow a preview for the blog entries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shlomi Fish</title>
		<link>http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-53309</link>
		<dc:creator>Shlomi Fish</dc:creator>
		<pubDate>Sat, 02 Jun 2007 19:01:22 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/2007/06/02/logical-operators-in-perl-and-ruby/#comment-53309</guid>
		<description>This is not only due to historical reasons. The "and", "or" and "not" have ultra-low precendece to allow you to omit the parentheses sometimes:

{{{{{{{{
open my $fh, "on IRC&lt;/a&gt; on #perl (I recommend Freenode) for why Perl has many things that are roughly identical, but not quite. That or you should read the Camel Book and "Perl Best Practices" before you make such speculation. Perl indeed has kind-of-evolved from Perl 1 to Perl 5, but there usually is a good reason for such subtle differences. 

If Ruby has something that Perl also has, then it's more probable that Mats imported it to Ruby for a reason, and left a lot of the cruft, because Ruby is a more consistent mixture of Perl, Python and Smalltalk.</description>
		<content:encoded><![CDATA[<p>This is not only due to historical reasons. The &#8220;and&#8221;, &#8220;or&#8221; and &#8220;not&#8221; have ultra-low precendece to allow you to omit the parentheses sometimes:</p>
<p>{{{{{{{{<br />
open my $fh, &#8220;on IRC on #perl (I recommend Freenode) for why Perl has many things that are roughly identical, but not quite. That or you should read the Camel Book and &#8220;Perl Best Practices&#8221; before you make such speculation. Perl indeed has kind-of-evolved from Perl 1 to Perl 5, but there usually is a good reason for such subtle differences. </p>
<p>If Ruby has something that Perl also has, then it&#8217;s more probable that Mats imported it to Ruby for a reason, and left a lot of the cruft, because Ruby is a more consistent mixture of Perl, Python and Smalltalk.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
