simonster / Reexport.jl

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

Export all symbols *except* a few ones #27

Open plut opened 3 years ago

plut commented 3 years ago

It may happen that you want to rename a few symbols in a module (e.g. because of name clashes). Do you think it would be possible, and/or useful, to have a @reexport syntax for:

  1. exporting all symbols except a few ones:
    @reexport using Y: !except_this_symbol, ...
  2. exporting all symbols while renaming a few ones:
    @reexport using Y: this_symbol = is_renamed_this_way, ...
goerz commented 2 years ago

This might also be a solution for #39