Hi,
I’m writing a module that makes use of the Distributions
package. Its API has arguments that are Distribution
types. So in order to be used in another environment, it is practically mandatory that the Distributions package is loaded too.
So what I did was to add a @reexport using Distributions
at the beginning of my module to ensure the user have all it needs when it loads my package with using MyPackage
.
Is this a good practice ? I’m asking because it’s crowding the namespace of MyPackage
with all the exported names of Distributions
, most of which are useless. And I’m kind of suspecting that this is not the intended use of Reexport, that it’s rather made for sub-modules.
If it’s not, what’s the advised way to go then ?