<?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: Roles, Singleton Methods &amp; MooseX::Declare</title>
	<atom:link href="http://transfixedbutnotdead.com/2009/06/10/roles-singleton-methods-moosexdeclare/feed/" rel="self" type="application/rss+xml" />
	<link>http://transfixedbutnotdead.com/2009/06/10/roles-singleton-methods-moosexdeclare/</link>
	<description>my ramblings on life, work &#38; anything left in-between</description>
	<lastBuildDate>Sat, 11 Feb 2012 02:28:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Moose fairy dust &#171; transfixed but not dead!</title>
		<link>http://transfixedbutnotdead.com/2009/06/10/roles-singleton-methods-moosexdeclare/#comment-720</link>
		<dc:creator><![CDATA[Moose fairy dust &#171; transfixed but not dead!]]></dc:creator>
		<pubDate>Fri, 19 Jun 2009 19:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=405#comment-720</guid>
		<description><![CDATA[[...] Roles, Singleton Methods &amp; MooseX::Declare [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Roles, Singleton Methods &amp; MooseX::Declare [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: draegtun</title>
		<link>http://transfixedbutnotdead.com/2009/06/10/roles-singleton-methods-moosexdeclare/#comment-695</link>
		<dc:creator><![CDATA[draegtun]]></dc:creator>
		<pubDate>Thu, 11 Jun 2009 07:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=405#comment-695</guid>
		<description><![CDATA[Like John has said this is only the beginning ;-)

For eg. Here is a snippet from game.t test from MooseX::MultiMethods on GitHub @ http://github.com/rafl/moosex-multimethods/tree/master

[sourcecode language=&quot;ruby&quot;]
{
    package Paper;    use Moose;
    package Scissors; use Moose;
    package Rock;     use Moose;
    package Lizard;   use Moose;
    package Spock;    use Moose;
 
    package Game;
    use Moose;
    use MooseX::MultiMethods;
 
    multi method play (Paper    $x, Rock     $y) { 1 }
    multi method play (Paper    $x, Spock    $y) { 1 }
    multi method play (Scissors $x, Paper    $y) { 1 }
    multi method play (Scissors $x, Lizard   $y) { 1 }
    multi method play (Rock     $x, Scissors $y) { 1 }
    multi method play (Rock     $x, Lizard   $y) { 1 }
    multi method play (Lizard   $x, Paper    $y) { 1 }
    multi method play (Lizard   $x, Spock    $y) { 1 }
    multi method play (Spock    $x, Rock     $y) { 1 }
    multi method play (Spock    $x, Scissors $y) { 1 }
    multi method play (Any      $x, Any      $y) { 0 }
}

my $game = Game-&gt;new;
ok($game-&gt;play(Spock-&gt;new, Scissors-&gt;new), &#039;Spock smashes Scissors&#039;);
ok(!$game-&gt;play(Lizard-&gt;new, Rock-&gt;new), &#039;Rock crushes Lizard&#039;);
ok(!$game-&gt;play(Spock-&gt;new, Paper-&gt;new), &#039;Paper disproves Spock&#039;);
[/sourcecode]

/I3az/]]></description>
		<content:encoded><![CDATA[<p>Like John has said this is only the beginning <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>For eg. Here is a snippet from game.t test from MooseX::MultiMethods on GitHub @ <a href="http://github.com/rafl/moosex-multimethods/tree/master" rel="nofollow">http://github.com/rafl/moosex-multimethods/tree/master</a></p>
<pre class="brush: ruby;">
{
    package Paper;    use Moose;
    package Scissors; use Moose;
    package Rock;     use Moose;
    package Lizard;   use Moose;
    package Spock;    use Moose;

    package Game;
    use Moose;
    use MooseX::MultiMethods;

    multi method play (Paper    $x, Rock     $y) { 1 }
    multi method play (Paper    $x, Spock    $y) { 1 }
    multi method play (Scissors $x, Paper    $y) { 1 }
    multi method play (Scissors $x, Lizard   $y) { 1 }
    multi method play (Rock     $x, Scissors $y) { 1 }
    multi method play (Rock     $x, Lizard   $y) { 1 }
    multi method play (Lizard   $x, Paper    $y) { 1 }
    multi method play (Lizard   $x, Spock    $y) { 1 }
    multi method play (Spock    $x, Rock     $y) { 1 }
    multi method play (Spock    $x, Scissors $y) { 1 }
    multi method play (Any      $x, Any      $y) { 0 }
}

my $game = Game-&gt;new;
ok($game-&gt;play(Spock-&gt;new, Scissors-&gt;new), 'Spock smashes Scissors');
ok(!$game-&gt;play(Lizard-&gt;new, Rock-&gt;new), 'Rock crushes Lizard');
ok(!$game-&gt;play(Spock-&gt;new, Paper-&gt;new), 'Paper disproves Spock');
</pre>
<p>/I3az/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john napiorkowski</title>
		<link>http://transfixedbutnotdead.com/2009/06/10/roles-singleton-methods-moosexdeclare/#comment-694</link>
		<dc:creator><![CDATA[john napiorkowski]]></dc:creator>
		<pubDate>Thu, 11 Jun 2009 02:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=405#comment-694</guid>
		<description><![CDATA[yeah, it will get even better :)

The example doesn&#039;t go into the powerful method signatures you get with MooseX::Declare and there&#039;s already code out there for multi methods and return signatures.  There&#039;s planned enhances nearly CPAN ready for even more advanced type constraints and talk about Lisp style conditions.  

After that there&#039;s going to be tons of new stuff in big projects like Catalyst and related, which has just recently become Moose based.]]></description>
		<content:encoded><![CDATA[<p>yeah, it will get even better <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The example doesn&#8217;t go into the powerful method signatures you get with MooseX::Declare and there&#8217;s already code out there for multi methods and return signatures.  There&#8217;s planned enhances nearly CPAN ready for even more advanced type constraints and talk about Lisp style conditions.  </p>
<p>After that there&#8217;s going to be tons of new stuff in big projects like Catalyst and related, which has just recently become Moose based.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geo</title>
		<link>http://transfixedbutnotdead.com/2009/06/10/roles-singleton-methods-moosexdeclare/#comment-693</link>
		<dc:creator><![CDATA[geo]]></dc:creator>
		<pubDate>Wed, 10 Jun 2009 22:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://transfixedbutnotdead.com/?p=405#comment-693</guid>
		<description><![CDATA[Really nice! I don&#039;t know if it can get any better than this! Can it? :)]]></description>
		<content:encoded><![CDATA[<p>Really nice! I don&#8217;t know if it can get any better than this! Can it? <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

