-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
rename Core.BottomType => Core.TypeofBottom #21057
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
Conversation
The old name sounds like an alias for `Bottom = Union{}` rather
than `Type{Bottom} == typeof(Bottom)`. (This last should hold
but currently doesn't – see #21016.)
2cbeae0 to
af71098
Compare
|
wasn't exported, but would break JLD - https://github.com/JuliaIO/JLD.jl/blob/aced8cbe4c89712b48434e73d62ac96b582bf409/src/JLD.jl#L1039 add a non-exported deprecation? |
What about just fixing the one case where it's used, i.e. JLD. |
|
Possibly used in private or non-github code, and it's not like a deprecation is hard to add? In order to still be able to benchmark against intermediate commits JLD will also have to account for both names at different versions. |
|
Adding a deprecation for an unexported, undocumented name that was added in this release and is used by only one package uses is silly. |
|
Out of curiosity, what's the motivation for the change? |
| ANY | ||
|
|
||
| """ | ||
| Core.TypeofBottom |
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 doesn't look right
julia> Core.BottomType == Type{Union{}}
false
julia> Core.BottomType === Type{Union{}}
falseThere 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.
#21023 fixes that (the == call at least).
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.
Yes, it's currently not true. Jeff and Jameson are having an ongoing debate about whether this should be true or not. Consider it aspirational.
|
The motivation is that |
ararslan
left a comment
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.
macOS failure looks entirely unrelated
|
@JeffBezanson: what do you think? Should I drop the docstring commit and then merge this? |
|
I think this is ok. I would remove |
af71098 to
62aee72
Compare
|
It's "silly" to add a single line to avoid hard-breaking a widely used package during feature freeze? |
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.
either the old name should be deprecated or a fix to JLD (that keeps the ability for the package to work at versions that used the old name) should be staged, or this will be disruptive, break benchmarking and quite a few other packages
This change should be merged and tagged in a release before JuliaLang/julia#21057 renames Core.BottomType
|
PR created for JLD. Deprecating a binding in Core is not so simple, but you're welcome to take a crack at it. |
that works. wonder why it wasn't written as typeof to begin with
Maybe because it wasn't entirely clear that |
|
Jeff wrote it - JuliaIO/JLD.jl@1fa3929 |
|
In that case it's because he's probably used to referring to the type that way :) |
This change should be merged and tagged in a release before JuliaLang/julia#21057 renames Core.BottomType (cherry picked from commit 4dc9447)
|
@nanosoldier |
|
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @jrevels |
|
Cool, looks like Nanosoldier is ready, and the AV appears unrelated. Good to merge, I think. |
No description provided.