<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Day 8: .comb your constraints</title>
	<atom:link href="http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/feed/" rel="self" type="application/rss+xml" />
	<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/</link>
	<description>Something cool about Perl 6 every day</description>
	<lastBuildDate>Sun, 03 Feb 2013 05:15:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: День 8: расчесываем ограничения &#124; Ky6uk&#039;s Blog</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-331</link>
		<dc:creator><![CDATA[День 8: расчесываем ограничения &#124; Ky6uk&#039;s Blog]]></dc:creator>
		<pubDate>Sat, 19 Jun 2010 18:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-331</guid>
		<description><![CDATA[[...] Оригинальная статья. VN:F [1.9.1_1087]один момент...Rating: 5.0/10 (1 vote cast)День 8: [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Оригинальная статья. VN:F [1.9.1_1087]один момент&#8230;Rating: 5.0/10 (1 vote cast)День 8: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-295</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 00:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-295</guid>
		<description><![CDATA[Sorry:  { $_ = rotate_one( $_, $n) if /&lt;alpha&gt;/; $_ } ).join( ” );]]></description>
		<content:encoded><![CDATA[<p>Sorry:  { $_ = rotate_one( $_, $n) if /&lt;alpha&gt;/; $_ } ).join( ” );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-294</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 00:28:41 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-294</guid>
		<description><![CDATA[Here, should be:
{ $_ = rotate_one( $_, $n) if /;&amp;ltalpha;&amp;gt/; $_ } ).join( ” );]]></description>
		<content:encoded><![CDATA[<p>Here, should be:<br />
{ $_ = rotate_one( $_, $n) if /;&amp;ltalpha;&amp;gt/; $_ } ).join( ” );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-293</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-293</guid>
		<description><![CDATA[Ok, it&#039;s the angle brackets.  The comment software removed angle brackets and anything between them.]]></description>
		<content:encoded><![CDATA[<p>Ok, it&#8217;s the angle brackets.  The comment software removed angle brackets and anything between them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-292</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:10:09 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-292</guid>
		<description><![CDATA[Did it again.  I don&#039;t know whether it&#039;s the  or the /slash marks/.]]></description>
		<content:encoded><![CDATA[<p>Did it again.  I don&#8217;t know whether it&#8217;s the  or the /slash marks/.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-291</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-291</guid>
		<description><![CDATA[Posting mangled my code:  The line reading { $_ = rotate_one( $_, $n) if //; $_ } ).join( ” );  should be:
{ $_ = rotate_one( $_, $n) if //; $_ } ).join( ” );]]></description>
		<content:encoded><![CDATA[<p>Posting mangled my code:  The line reading { $_ = rotate_one( $_, $n) if //; $_ } ).join( ” );  should be:<br />
{ $_ = rotate_one( $_, $n) if //; $_ } ).join( ” );</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-290</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:04:50 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-290</guid>
		<description><![CDATA[I mean 0x1F.  Anyway, you get it.]]></description>
		<content:encoded><![CDATA[<p>I mean 0x1F.  Anyway, you get it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Wenzbauer</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-289</link>
		<dc:creator><![CDATA[Lee Wenzbauer]]></dc:creator>
		<pubDate>Wed, 24 Feb 2010 23:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-289</guid>
		<description><![CDATA[This is pretty much like the example.  I just moved the alpha test to rotate and checked for overflow a different way:

use v6;

sub rotate_one( Str $c where { $c.chars == 1 }, Int $n ) {
        my $a = $c.ord;
        $a -= 26 if ($a +&amp; 0x1F) + $n &gt; 26;
        return ($a + $n).chr;
}
 
sub rotate(Str $s where { $s.chars }, Int $n = 3)
{
    return ($s.comb.map:
        { $_ = rotate_one( $_, $n) if //; $_ } ).join( &#039;&#039; );
}

my Str $mess = @*ARGS[0];
my Int $rotate = @*ARGS[1].Int;

say qq&#124;&quot;$mess&quot; rotated $rotate characters gives &quot;{rotate($mess,$rotate)}&quot;.&#124;;

I know I&#039;m using a &quot;magic number&quot; (0x1A) but there&#039;s already a magic number in the code (26).]]></description>
		<content:encoded><![CDATA[<p>This is pretty much like the example.  I just moved the alpha test to rotate and checked for overflow a different way:</p>
<p>use v6;</p>
<p>sub rotate_one( Str $c where { $c.chars == 1 }, Int $n ) {<br />
        my $a = $c.ord;<br />
        $a -= 26 if ($a +&amp; 0x1F) + $n &gt; 26;<br />
        return ($a + $n).chr;<br />
}</p>
<p>sub rotate(Str $s where { $s.chars }, Int $n = 3)<br />
{<br />
    return ($s.comb.map:<br />
        { $_ = rotate_one( $_, $n) if //; $_ } ).join( &#8221; );<br />
}</p>
<p>my Str $mess = @*ARGS[0];<br />
my Int $rotate = @*ARGS[1].Int;</p>
<p>say qq|&#8221;$mess&#8221; rotated $rotate characters gives &#8220;{rotate($mess,$rotate)}&#8221;.|;</p>
<p>I know I&#8217;m using a &#8220;magic number&#8221; (0x1A) but there&#8217;s already a magic number in the code (26).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff Broadwell</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-72</link>
		<dc:creator><![CDATA[Geoff Broadwell]]></dc:creator>
		<pubDate>Wed, 09 Dec 2009 04:53:23 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-72</guid>
		<description><![CDATA[Perl has a long tradition of allowing programmers to be productive no matter what their skill level, from beginner to wizard.  In this case, perl6lurker is using mostly beginner to intermediate concepts, but combining them in a more advanced way, because it is, well, &quot;neat&quot;.

That said, Perl 6 has significantly raised the upper limit of supported wizardry (by design), so I expect there will be a number of times when I come across code that has a rather koan-like demeanor and effect.  :-)]]></description>
		<content:encoded><![CDATA[<p>Perl has a long tradition of allowing programmers to be productive no matter what their skill level, from beginner to wizard.  In this case, perl6lurker is using mostly beginner to intermediate concepts, but combining them in a more advanced way, because it is, well, &#8220;neat&#8221;.</p>
<p>That said, Perl 6 has significantly raised the upper limit of supported wizardry (by design), so I expect there will be a number of times when I come across code that has a rather koan-like demeanor and effect.  :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wow</title>
		<link>http://perl6advent.wordpress.com/2009/12/08/day-8-comb-your-constraints/#comment-69</link>
		<dc:creator><![CDATA[wow]]></dc:creator>
		<pubDate>Tue, 08 Dec 2009 17:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=136#comment-69</guid>
		<description><![CDATA[Wow.  I sincerely hope never to need to read or write Perl6.  This is insanity!]]></description>
		<content:encoded><![CDATA[<p>Wow.  I sincerely hope never to need to read or write Perl6.  This is insanity!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
