<?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: Be careful with optional parameters in C# 4.0</title>
	<atom:link href="http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/</link>
	<description></description>
	<lastBuildDate>Sun, 14 Mar 2010 20:36:31 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Neal Blomfield</title>
		<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/comment-page-1/#comment-38177</link>
		<dc:creator>Neal Blomfield</dc:creator>
		<pubDate>Thu, 27 Nov 2008 19:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/#comment-38177</guid>
		<description>http://saftsack.fs.uni-bayreuth.de/~dun3/archives/optional-parameters-conclusion-treat-like-unsafe/216.html

Similar example.  1 commenter tries it with VB and compiler will not allow you to change opt ional parameter values between overrides, another commenter tries it with c   and gets the same behaviour as the c# 4.0 implementation.

At least you know the lineage of the implementation (although it still sucks).</description>
		<content:encoded><![CDATA[<p><a href="http://saftsack.fs.uni-bayreuth.de/~dun3/archives/optional-parameters-conclusion-treat-like-unsafe/216.html" rel="nofollow">http://saftsack.fs.uni-bayreuth.de/~dun3/archives/optional-parameters-conclusion-treat-like-unsafe/216.html</a></p>
<p>Similar example.  1 commenter tries it with VB and compiler will not allow you to change opt ional parameter values between overrides, another commenter tries it with c   and gets the same behaviour as the c# 4.0 implementation.</p>
<p>At least you know the lineage of the implementation (although it still sucks).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neal Blomfield</title>
		<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/comment-page-1/#comment-38175</link>
		<dc:creator>Neal Blomfield</dc:creator>
		<pubDate>Thu, 27 Nov 2008 19:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/#comment-38175</guid>
		<description>Why? why? why would they choose to make it operate in this manner.  It should be the instantiated type that determines the method that is called.

@Daniel:  There is no need for that approach, when you define something as virtual and then override it in a descendent class, you effectively replace the method in the parent class.  If this behaviour was continued for methods with optional parameters then f1.Foo(); should invoke Foo(2).

Off to see if I can find any reasoning behind this...</description>
		<content:encoded><![CDATA[<p>Why? why? why would they choose to make it operate in this manner.  It should be the instantiated type that determines the method that is called.</p>
<p>@Daniel:  There is no need for that approach, when you define something as virtual and then override it in a descendent class, you effectively replace the method in the parent class.  If this behaviour was continued for methods with optional parameters then f1.Foo(); should invoke Foo(2).</p>
<p>Off to see if I can find any reasoning behind this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Earwicker</title>
		<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/comment-page-1/#comment-37406</link>
		<dc:creator>Daniel Earwicker</dc:creator>
		<pubDate>Mon, 17 Nov 2008 10:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/#comment-37406</guid>
		<description>Simple fix in the language design: ban overrides from changing the optional parameters?</description>
		<content:encoded><![CDATA[<p>Simple fix in the language design: ban overrides from changing the optional parameters?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omer van Kloeten</title>
		<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/comment-page-1/#comment-36980</link>
		<dc:creator>Omer van Kloeten</dc:creator>
		<pubDate>Mon, 10 Nov 2008 18:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/#comment-36980</guid>
		<description>Well done with this. I&#039;ve not liked optional parameters since the day I first laid eyes on them and this makes me wary even more. Thanks for the heads-up.</description>
		<content:encoded><![CDATA[<p>Well done with this. I&#8217;ve not liked optional parameters since the day I first laid eyes on them and this makes me wary even more. Thanks for the heads-up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dew Drop - November 10, 2008 &#124; Alvin Ashcraft's Morning Dew</title>
		<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/comment-page-1/#comment-36967</link>
		<dc:creator>Dew Drop - November 10, 2008 &#124; Alvin Ashcraft's Morning Dew</dc:creator>
		<pubDate>Mon, 10 Nov 2008 12:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/#comment-36967</guid>
		<description>[...] Be Careful with Optional Parameters in C# 4.0 (Jan Van Ryswyck) [...]</description>
		<content:encoded><![CDATA[<p>[...] Be Careful with Optional Parameters in C# 4.0 (Jan Van Ryswyck) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reflective Perspective - Chris Alcock &#187; The Morning Brew #219</title>
		<link>http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/comment-page-1/#comment-36958</link>
		<dc:creator>Reflective Perspective - Chris Alcock &#187; The Morning Brew #219</dc:creator>
		<pubDate>Mon, 10 Nov 2008 08:35:52 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2008/11/09/be-careful-with-optional-parameters-in-c-40/#comment-36958</guid>
		<description>[...] Be careful with optional parameters in C# 4.0 - Jan Van Ryswyck highlights some potentially surprising behaviour of derived types and optional parameters [...]</description>
		<content:encoded><![CDATA[<p>[...] Be careful with optional parameters in C# 4.0 &#8211; Jan Van Ryswyck highlights some potentially surprising behaviour of derived types and optional parameters [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
