Click here to Skip to main content
15,920,632 members

Survey Results

Are optional parameters for methods good or bad?   [Edit]

Survey period: 28 Feb 2005 to 6 Mar 2005

C++ has them, C# doesn't. Overall, what's your preference?

OptionVotes% 
Good84865.48
Bad28722.16
Undecided16012.36



 
GeneralRe: Overload nitemare Pin
Corneliu Tusnea27-Feb-05 22:07
Corneliu Tusnea27-Feb-05 22:07 
GeneralRe: Overload nitemare Pin
WoR27-Feb-05 23:36
WoR27-Feb-05 23:36 
GeneralRe: Overload nitemare Pin
paulccc28-Feb-05 0:59
paulccc28-Feb-05 0:59 
GeneralRe: Overload nitemare Pin
Chris Meech28-Feb-05 1:46
Chris Meech28-Feb-05 1:46 
GeneralRe: Overload nitemare Pin
Blake Miller28-Feb-05 5:13
Blake Miller28-Feb-05 5:13 
GeneralRe: Overload nitemare Pin
BluePineNeedles28-Feb-05 12:19
BluePineNeedles28-Feb-05 12:19 
GeneralRe: Overload nitemare Pin
Jason De Arte28-Feb-05 14:24
Jason De Arte28-Feb-05 14:24 
GeneralRe: Overload nitemare Pin
John M. Drescher3-Mar-05 6:10
John M. Drescher3-Mar-05 6:10 
Exactly. I have been working on a new project and I find that quite a few times in the last few weeks I had to add some additional functionality to class methods in libraries that most of my projects use. It is an enormous timesaver to add a default parameter to the method in a way that it would not break the existing functionality but allow the new functionality.

BTW: Even with that said I voted BAD, because if used too frequently/carelessly especially with overloading they can introduce bugs in your application that are difficult to track down.

John
GeneralRe: Overload nitemare Pin
Phil Harding28-Feb-05 3:59
Phil Harding28-Feb-05 3:59 
GeneralRe: Overload nitemare Pin
Grimolfr28-Feb-05 4:20
Grimolfr28-Feb-05 4:20 
GeneralRe: Overload nitemare Pin
jmueller28-Feb-05 8:59
jmueller28-Feb-05 8:59 
GeneralRe: Overload nitemare Pin
Nemanja Trifunovic1-Mar-05 6:15
Nemanja Trifunovic1-Mar-05 6:15 
GeneralRe: Overload nitemare Pin
SHaroz2-Mar-05 13:02
SHaroz2-Mar-05 13:02 
GeneralRe: Overload nitemare Pin
Anonymous2-Mar-05 22:58
Anonymous2-Mar-05 22:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.