<?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: What the Heck Is a Tuple, Anyway?</title>
	<atom:link href="http://joeygibson.com/2010/01/13/what-the-heck-is-a-tuple-anyway/feed/" rel="self" type="application/rss+xml" />
	<link>http://joeygibson.com/2010/01/13/what-the-heck-is-a-tuple-anyway/</link>
	<description>Java, Clojure, Scala, Groovy, Ruby, Python, Lisp, Objective-C, OSX, politics, religion, Koine Greek, Tae Kwon Do, Spanish and much more!</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:22:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Clint</title>
		<link>http://joeygibson.com/2010/01/13/what-the-heck-is-a-tuple-anyway/comment-page-1/#comment-1600</link>
		<dc:creator>Clint</dc:creator>
		<pubDate>Fri, 15 Jan 2010 04:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://joeygibson.com/?p=1500#comment-1600</guid>
		<description>&quot;Too-ple&quot;</description>
		<content:encoded><![CDATA[<p>&#8220;Too-ple&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris DeLashmutt</title>
		<link>http://joeygibson.com/2010/01/13/what-the-heck-is-a-tuple-anyway/comment-page-1/#comment-1593</link>
		<dc:creator>Chris DeLashmutt</dc:creator>
		<pubDate>Wed, 13 Jan 2010 19:10:51 +0000</pubDate>
		<guid isPermaLink="false">http://joeygibson.com/?p=1500#comment-1593</guid>
		<description>Nice example!  The distinction between Tuples and other data structures in Scala makes more sense to me now.  It almost seems to me like an anonymous, immutable struct.

Based on your descriptions, I think I would prefer a Tuple in the case where I wanted to return an small, immutable set of values of different types to a caller.  It is concise, clear, type-safe, and it seems very easy to re-factor to a proper class if you need to add functionality.  

It also seems like it can be easily abused by putting way too many values in it, or by passing that Tuple around to multiple classes.  I would say that if you need more than 2-3 values, or you pass the Tuple to more that 2-3 different objects, then you need to use a class.  It&#039;s _too_ easy to create value classes in Scala not to.</description>
		<content:encoded><![CDATA[<p>Nice example!  The distinction between Tuples and other data structures in Scala makes more sense to me now.  It almost seems to me like an anonymous, immutable struct.</p>
<p>Based on your descriptions, I think I would prefer a Tuple in the case where I wanted to return an small, immutable set of values of different types to a caller.  It is concise, clear, type-safe, and it seems very easy to re-factor to a proper class if you need to add functionality.  </p>
<p>It also seems like it can be easily abused by putting way too many values in it, or by passing that Tuple around to multiple classes.  I would say that if you need more than 2-3 values, or you pass the Tuple to more that 2-3 different objects, then you need to use a class.  It&#8217;s _too_ easy to create value classes in Scala not to.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

