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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -