design of aplication configuration. What is the better? -


i have small question "configuration , function" :)

we have function help(int x, int y, int z = 0).

now, "z" configurable parameter. if "z" not set "z" determined config file. (in function z (as argument) used).

is right solution? if not, why?

this seems right thing assuming 0 not option. alternative use boolean indicate configuration file should used regardless of z parameter.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -