mercredi 4 octobre 2017

Passing configuration parameters to a custom function

I am willing to write a function for solving some numerical equations. Aside from the input variables, such a method contains many configuration parameters and passing them as extra variables to the function would be very messy (however, in python it is not so stupid). How would you solve such a problem? Maybe there are some design patterns for such problems? Parameters need to have a name. I don't want to pass some array with numbers without knowing what is the order of configuration parameters.

Configuration parameters -> custom function

Aucun commentaire:

Enregistrer un commentaire