-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate symbol (to Symbol) #16154
Deprecate symbol (to Symbol) #16154
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -560,7 +560,7 @@ end | |
@deprecate_binding MathConst Irrational | ||
|
||
macro math_const(sym, val, def) | ||
depwarn("@math_const is deprecated and renamed to @irrational.", symbol("@math_const")) | ||
depwarn("@math_const is deprecated and renamed to @irrational.", Symbol("@math_const")) | ||
:(@irrational $(esc(sym)) $(esc(val)) $(esc(def))) | ||
end | ||
export @math_const | ||
|
@@ -689,7 +689,7 @@ include("require.jl") | |
# require("Foo") --- ambiguous. might be file or package | ||
filename = maybe_require_file(f) | ||
if filename == f | ||
mod = symbol(require_modname(f)) | ||
mod = Symbol(require_modname(f)) | ||
M = current_module() | ||
if isdefined(M,mod) && isa(eval(M,mod),Module) | ||
return | ||
|
@@ -930,7 +930,7 @@ end | |
|
||
#14474 | ||
macro boundscheck(yesno,blk) | ||
depwarn("The meaning of `@boundscheck` has changed. It now indicates that the provided code block performs bounds checking, and may be elided when inbounds.", symbol("@boundscheck")) | ||
depwarn("The meaning of `@boundscheck` has changed. It now indicates that the provided code block performs bounds checking, and may be elided when inbounds.", Symbol("@boundscheck")) | ||
if yesno === true | ||
:(@inbounds $(esc(blk))) | ||
end | ||
|
@@ -1082,6 +1082,9 @@ end | |
@deprecate sprand{T}(n::Integer, density::AbstractFloat, ::Type{T}) sprand(T, n, density) | ||
@deprecate sprand{T}(r::AbstractRNG, n::Integer, density::AbstractFloat, ::Type{T}) sprand(r, T, n, density) | ||
|
||
#16130 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong PR # There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ha, that's one of the numbers... we should use the original. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed, thanks! |
||
@deprecate symbol Symbol | ||
|
||
# During the 0.5 development cycle, do not add any deprecations below this line | ||
# To be deprecated in 0.6 | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should really not be combined with renaming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's in the second, cleanup, commit.
Edit: That is, the right hand side of this line diff is in the second commit (removing
:end
). The symbol -> Symbol is in the first commit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are multi character dot operators that this loop may want to be extended to, I think this change is unnecessary and could make this bug prone later