<?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: Syntactic Sugar in Groovy and Ruby</title>
	<atom:link href="http://naleid.com/blog/2008/05/27/syntactic-sugar-in-groovy-and-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://naleid.com/blog/2008/05/27/syntactic-sugar-in-groovy-and-ruby/</link>
	<description>Groovy, Grails and OS X tips and tricks</description>
	<pubDate>Tue, 06 Jan 2009 02:16:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: tednaleid</title>
		<link>http://naleid.com/blog/2008/05/27/syntactic-sugar-in-groovy-and-ruby/#comment-444</link>
		<dc:creator>tednaleid</dc:creator>
		<pubDate>Fri, 30 May 2008 05:00:04 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=24#comment-444</guid>
		<description>Awesome! Thanks for the posts guys.  It's great to hear that Groovy is taking even more of the useful features from Ruby than I realized. 

Sounds like just about all of the main things that I've been missing from Ruby are coming over (or are at least being considered).

About the biggest thing left, would be some sort of .irbrc equivalent for the groovy shell, and I think I might be able to hack something like that together pretty quickly (and contribute it back if people on the groovy mailing list think it's useful).</description>
		<content:encoded><![CDATA[<p>Awesome! Thanks for the posts guys.  It&#8217;s great to hear that Groovy is taking even more of the useful features from Ruby than I realized. </p>
<p>Sounds like just about all of the main things that I&#8217;ve been missing from Ruby are coming over (or are at least being considered).</p>
<p>About the biggest thing left, would be some sort of .irbrc equivalent for the groovy shell, and I think I might be able to hack something like that together pretty quickly (and contribute it back if people on the groovy mailing list think it&#8217;s useful).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul King</title>
		<link>http://naleid.com/blog/2008/05/27/syntactic-sugar-in-groovy-and-ruby/#comment-441</link>
		<dc:creator>Paul King</dc:creator>
		<pubDate>Thu, 29 May 2008 22:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=24#comment-441</guid>
		<description>These are available in 1.6:

[a, b] = ["foo", "bar"]
assert a == "foo"

def array = ["foo", "bar", "baz"]
assert array[0] == "foo"
assert array.first() == "foo"
assert array.head() == "foo"
assert array[-1] == "baz"
assert array.last() == "baz"

Experimentally in 1.6 there is also a grapes equivalent to gems (not finalised yet) and an experimental block regular expression syntax (not finalised yet).</description>
		<content:encoded><![CDATA[<p>These are available in 1.6:</p>
<p>[a, b] = [&#8221;foo&#8221;, &#8220;bar&#8221;]<br />
assert a == &#8220;foo&#8221;</p>
<p>def array = [&#8221;foo&#8221;, &#8220;bar&#8221;, &#8220;baz&#8221;]<br />
assert array[0] == &#8220;foo&#8221;<br />
assert array.first() == &#8220;foo&#8221;<br />
assert array.head() == &#8220;foo&#8221;<br />
assert array[-1] == &#8220;baz&#8221;<br />
assert array.last() == &#8220;baz&#8221;</p>
<p>Experimentally in 1.6 there is also a grapes equivalent to gems (not finalised yet) and an experimental block regular expression syntax (not finalised yet).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hamlet D'Arcy</title>
		<link>http://naleid.com/blog/2008/05/27/syntactic-sugar-in-groovy-and-ruby/#comment-434</link>
		<dc:creator>Hamlet D'Arcy</dc:creator>
		<pubDate>Thu, 29 May 2008 18:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=24#comment-434</guid>
		<description>A recent version of Groovy (1.5.4?) added head() and tail() methods to java.util.List, which I find quite useful. On an empty list it does throw a NoSuchElementException though. first() and last() also exist in list, but I'm not sure how recent those are. I'm looking at the svn repo (org.codehaus.groovy.runtime.DefaultGroovyMethods.java)

After trying to fight w/ Ivy and Maven the last few days, I definitely feel the same envy for Ruby's gem system.</description>
		<content:encoded><![CDATA[<p>A recent version of Groovy (1.5.4?) added head() and tail() methods to java.util.List, which I find quite useful. On an empty list it does throw a NoSuchElementException though. first() and last() also exist in list, but I&#8217;m not sure how recent those are. I&#8217;m looking at the svn repo (org.codehaus.groovy.runtime.DefaultGroovyMethods.java)</p>
<p>After trying to fight w/ Ivy and Maven the last few days, I definitely feel the same envy for Ruby&#8217;s gem system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dierk König</title>
		<link>http://naleid.com/blog/2008/05/27/syntactic-sugar-in-groovy-and-ruby/#comment-429</link>
		<dc:creator>Dierk König</dc:creator>
		<pubDate>Thu, 29 May 2008 08:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://naleid.com/blog/?p=24#comment-429</guid>
		<description>Yes, Gregg attended my "Groovy in a day" event at DLW. It was great to have him there. I commented on his blog to clarify some of the misconceptions in the other comments. --Dierk</description>
		<content:encoded><![CDATA[<p>Yes, Gregg attended my &#8220;Groovy in a day&#8221; event at DLW. It was great to have him there. I commented on his blog to clarify some of the misconceptions in the other comments. &#8211;Dierk</p>
]]></content:encoded>
	</item>
</channel>
</rss>
