|
This post originated from an RSS feed registered with .NET Buzz
by Jeff Key.
|
Original Post: Why default parameters are bad
Feed Title: Jeff Key
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jkey/Rss.aspx
Feed Description: Topics revolve around .NET and the Windows platform.
|
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jeff Key
Latest Posts From Jeff Key
|
|
I've read in the past that default parameters in VB.NET are “bad”, but never saw an explanation. Being a C# guy, I didn't really care to find out why since we don't have them. BradA explains why.
Simply, the default value is compiled into the caller. Yes, that's right, this is your worst versioning nightmare.
Read: Why default parameters are bad