@ckneale wrote:
I am making a simulation package in Julia. There are maybe 10-20 different parameters that must be user defined(not derivable from other means) passed around different functions(mostly in pieces but still all need to be entirely in scope at some point).
For the sake of the sanity of the end user I’d like to put these into some object: potentially a struct, maybe a Dict? Mostly for convenience, otherwise a user may have to make a function call with 10-20 different keywordless parameters. Another set of alternatives to consider could be to have a “template” with a bunch of globals, or even a UI (kind of forces the workflow of the end user though…), a csv/json type file format?
What’s the Julian way of handling these scenarios?
Posts: 7
Participants: 5