Name: Anonymous 2011-03-01 20:42
Exhibit A
Exhibit B
Which do you prefer? (e.g. C# forces the 2nd example)
void some_function(int a = some_default_value)
{
do_something(a);
}Exhibit B
void some_function()
{
do_something(some_default_value);
}
void some_function(int a)
{
do_something(a);
}Which do you prefer? (e.g. C# forces the 2nd example)