-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
add ismutable
to Compat for Julia PR 34652
#686
Conversation
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.
Some minor remarks, the addition itself looks good to me. But in any case, we should wait until JuliaLang/julia#34652 has landed with merging this one.
# https://github.com/JuliaLang/julia/pull/34652 | ||
if VERSION < v"1.5.0-DEV.231" | ||
export ismutable | ||
ismutable(@nospecialize(x)) = (Base.@_pure_meta; typeof(x).mutable) |
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 could use @pure
(no bootstrapping issues in Compat.jl), but doesn't really matter.
to add
ismutable
for julia PR JuliaLang/julia#34652