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

hibernate - How to load global settings frequently used in application in Java -

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

objective c - Ownership modifiers with manual reference counting -