Skip to content

Commit

Permalink
Simplify exports deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
rofinn committed Jul 4, 2019
1 parent d492fd1 commit 9f7cce7
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/Impute.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import Base.Iterators
export impute, impute!, chain, chain!, drop, drop!, interp, interp!, ImputeError

function __init__()
for sym in [:chain, :chain!, :drop, :drop!, :interp, :interp!]
Base.depwarn(
"`$sym` will no longer be exported in future releases. " *
"Please qualify your calls with `Impute.$sym(...).` or explicitly import it.",
sym
)
end
sym = join(["chain", "chain!", "drop", "drop!", "interp", "interp!"], ", ", " and ")

@warn(
"""
The following symbols will not be exported in future releases: $sym.
Please qualify your calls with `Impute.<method>(...)` or explicitly import the symbol.
"""
)
end

"""
Expand Down

0 comments on commit 9f7cce7

Please sign in to comment.