Default argument value vs. overload

So now you have to look up what the default value is and your call where you want to provide a specific multiplier value now must be

DoSomething(double a, false, 1.5);

Also, if at some point we want to deprecate the second argument (useNewMode), all of the calls using explicitly the default value needs to be updated, so that adds some extra work (even if the fix is trivial)

1 Like