Avoid repeating the same `using` line for enclosed modules

Thank everyone for the helpful comments!

I’m having a discussion with our software lead about how we implement an API in Julia, where users call a function analyze. She wants different analyze functions that perform different types of analyses, and to avoid namespace issues, she wants me to use modules, i.e. using different module names for different types of analyses, but every such module will have one function called analyze. Among the types of analyses we already set up, many of them will have essentially the same dependencies (using the same set of packages), meaning they are too coupled to be in separate modules? The issue of using multiple dispatch is that she wants exactly the same function signature for each analyze function. So I’m not sure how to propose better alternatives.

Thanks for any potential help!

1 Like