"Importing" all "exported" functionality

You can wrap using inside a new module and it seems you can even use the same name. Example:

julia> module Inflate
           using Inflate
       end
Main.Inflate

julia> Inflate.InflateGzipStream
Inflate.InflateGzipStream

julia> Inflate.InflateData
ERROR: UndefVarError: InflateData not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:26
 [2] top-level scope
   @ REPL[3]:1

to be compared to

julia> import Inflate

julia> Inflate.InflateGzipStream
Inflate.InflateGzipStream

julia> Inflate.InflateData
Inflate.InflateData
10 Likes