Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

function arguments()

Name: Anonymous 2010-04-24 9:47

Which do you prefer:


int foo(int a);
int foo(int a = someDefaultArgument);


or

int foo(int a);
int foo(void);

Name: Anonymous 2010-04-25 1:08

>>17
You mean the one place it's defined? Yeah, no, that's not a problem. Not to mention: if your default values change and it alters the behavior of everything that calls it with the old default value then you have a serious issue on your hands and all calls to that function need to be revisited to ensure they still perform as expected.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List