simonster / Reexport.jl

Julia macro for re-exporting one module from another
Other
161 stars 19 forks source link

reexport as submodule #24

Open johnnychen94 opened 4 years ago

johnnychen94 commented 4 years ago

I'm not sure if this is doable:

module GiantPkg

    @reexport A using SubPkgA
end

that mimics

module GiantPkg

    module A
        using Reexport
        @reexport using SubPkgA
    end

end

SubPkgA is a standalone package that developed independently (e.g., ImageCore, ImageFiltering), and GiantPkg is an umbrella package (e.g., Images). This helps organize exported symbols in a hierarchical way.

cc: @timholy