Why should default parameters be added last in C++ functions?
To simplify the language definition and keep code readable. void foo(int x = 2, int y); To call that and take advantage of the default value, you’d need syntax like this: foo(, 3); Which was probably felt to be too weird. Another alternative is specifying names in the argument list: foo(y : 3); A new … Read more