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
Post a Comment