<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: API Design: Method parameter objects</title>
	<link>http://www.ericfeminella.com/blog/2008/01/12/quick-tips-api-design/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 08:13:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: Mark</title>
		<link>http://www.ericfeminella.com/blog/2008/01/12/quick-tips-api-design/#comment-4875</link>
		<pubDate>Fri, 01 Feb 2008 00:58:05 +0000</pubDate>
		<guid>http://www.ericfeminella.com/blog/2008/01/12/quick-tips-api-design/#comment-4875</guid>
					<description>William: the parameters object is an instance of an actual  parameters class you created specifically for the method your creating it for. Your class will have strong typed properties so your values will still be type checked.

Eric: A great solution! I've seen plenty of this going on with anonymous objects passed as parameters (AS3 Tweener class for example) but never as a concrete parameters class. I think i'll finally update some of my more unwieldy methods, thanks :)</description>
		<content:encoded><![CDATA[<p>William: the parameters object is an instance of an actual  parameters class you created specifically for the method your creating it for. Your class will have strong typed properties so your values will still be type checked.</p>
<p>Eric: A great solution! I&#8217;ve seen plenty of this going on with anonymous objects passed as parameters (AS3 Tweener class for example) but never as a concrete parameters class. I think i&#8217;ll finally update some of my more unwieldy methods, thanks <img src='http://www.ericfeminella.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: William from Lagos</title>
		<link>http://www.ericfeminella.com/blog/2008/01/12/quick-tips-api-design/#comment-3942</link>
		<pubDate>Sun, 13 Jan 2008 10:15:53 +0000</pubDate>
		<guid>http://www.ericfeminella.com/blog/2008/01/12/quick-tips-api-design/#comment-3942</guid>
					<description>But how do we account for type checking at compile time. Suppose z in the params object is meant to be a string and not a number as passed, how do we guard against that?</description>
		<content:encoded><![CDATA[<p>But how do we account for type checking at compile time. Suppose z in the params object is meant to be a string and not a number as passed, how do we guard against that?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
