How to not get lost in that case ? Example, this is a function that returns bool but takes on 10 params:
bool myFunc(bool par1 = true, bool par2 = false, bool par3 = true,
bool par4 = true /* and so on */ ) {}
And let's say that the function params are set default for 90% cases. But occasionally client code wants to change only a few of them. The only option I see here is painstakingly copy all the default params until we get to the one that needs to change. Any chance of calling this function in this way:
bool myVal = myFunc(par10 = true, par20 = false);
So any who reads the code know what is going (the names of the params are very long but meaningful) with the code and moreover when I change the function definition I won't need to look whenever it is called to update the default params ?