<?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: &#8216;in&#8217; the groove</title>
	<atom:link href="http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/feed" rel="self" type="application/rss+xml" />
	<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove</link>
	<description>A search for meaning in software and life</description>
	<lastBuildDate>Tue, 31 Aug 2010 09:23:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Steve</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/comment-page-1#comment-853</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 19 Jan 2010 00:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=185#comment-853</guid>
		<description>Sounds like &quot;in&quot; should sometimes be &quot;is&quot; ... or perhaps &quot;instanceof&quot;?

Definitely come confusion around this point -- but generally a very cool feature.</description>
		<content:encoded><![CDATA[<p>Sounds like &#8220;in&#8221; should sometimes be &#8220;is&#8221; &#8230; or perhaps &#8220;instanceof&#8221;?</p>
<p>Definitely come confusion around this point &#8212; but generally a very cool feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dierk König</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/comment-page-1#comment-851</link>
		<dc:creator>Dierk König</dc:creator>
		<pubDate>Thu, 14 Jan 2010 15:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=185#comment-851</guid>
		<description>well, it only makes sense when considering the isCase() heritage. 
&quot;in&quot; does _not_ denote a containment but a classification!</description>
		<content:encoded><![CDATA[<p>well, it only makes sense when considering the isCase() heritage.<br />
&#8220;in&#8221; does _not_ denote a containment but a classification!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/comment-page-1#comment-850</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 14 Jan 2010 14:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=185#comment-850</guid>
		<description>Thanks for the correction and clarification Dierk. I have to say, this is one instance where Groovy doesn&#039;t do what I would expect it to. This works as you say:

def x = 1.0F
assert x in Float

but doesn&#039;t make much sense to my eyes, whereas this doesn&#039;t work:

def x = &quot;st&quot;
assert x in &quot;string&quot;

but I would expect it to. The BigDecimal behaviour is another anomaly.</description>
		<content:encoded><![CDATA[<p>Thanks for the correction and clarification Dierk. I have to say, this is one instance where Groovy doesn&#8217;t do what I would expect it to. This works as you say:</p>
<p>def x = 1.0F<br />
assert x in Float</p>
<p>but doesn&#8217;t make much sense to my eyes, whereas this doesn&#8217;t work:</p>
<p>def x = &#8220;st&#8221;<br />
assert x in &#8220;string&#8221;</p>
<p>but I would expect it to. The BigDecimal behaviour is another anomaly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Brown</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/comment-page-1#comment-849</link>
		<dc:creator>Josh Brown</dc:creator>
		<pubDate>Thu, 14 Jan 2010 13:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=185#comment-849</guid>
		<description>This is great!  I never thought about using &quot;in&quot; in a findAll - thanks for posting!</description>
		<content:encoded><![CDATA[<p>This is great!  I never thought about using &#8220;in&#8221; in a findAll &#8211; thanks for posting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dierk König</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/comment-page-1#comment-848</link>
		<dc:creator>Dierk König</dc:creator>
		<pubDate>Thu, 14 Jan 2010 12:42:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=185#comment-848</guid>
		<description>Cool post!
One should mention that &#039;in&#039; is based on the isCase() method and is thus available for _any_ object and adaptable to ones needs.
if (x in Float)
if (x in ~/regex/)
etc.

see also Groovy in Action, second edition.</description>
		<content:encoded><![CDATA[<p>Cool post!<br />
One should mention that &#8216;in&#8217; is based on the isCase() method and is thus available for _any_ object and adaptable to ones needs.<br />
if (x in Float)<br />
if (x in ~/regex/)<br />
etc.</p>
<p>see also Groovy in Action, second edition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Rellis</title>
		<link>http://www.cacoethes.co.uk/blog/groovyandgrails/in-the-groove/comment-page-1#comment-847</link>
		<dc:creator>John Rellis</dc:creator>
		<pubDate>Thu, 14 Jan 2010 10:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.cacoethes.co.uk/blog/?p=185#comment-847</guid>
		<description>Thanks Peter!  You are right when you say &quot;For many people...&quot;... now there&#039;s one less person! :) Gotta love it!</description>
		<content:encoded><![CDATA[<p>Thanks Peter!  You are right when you say &#8220;For many people&#8230;&#8221;&#8230; now there&#8217;s one less person! <img src='http://www.cacoethes.co.uk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Gotta love it!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
