-
-
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
Add 'isassigned' for RefValue #18082
Conversation
I would strongly prefer |
We already have |
@yuyichao, I'd rather get rid of The fact that |
More importantly for certain types ( |
In what case should (There are plenty of cases where |
Yes. (Assuming you mean julia> isdefined(view(Vector{Any}(3), :), 1)
true
julia> isassigned(view(Vector{Any}(3), :), 1)
false
|
i.e. they are not the same operation at all. It is unfortunate that |
Okay, looks like the consensus is for |
CI passed but looks like we still need tests? |
@kshyatt Which test file does this belong in? |
cdb1d99
to
bac5e30
Compare
Tests added |
Not sure, to be honest. Maybe whichever file(s) the |
Good to merge? |
Not worth creating a new test file and the printing and process spawning overhead of that for such a small nunber of new tests. ccall seems like a decent enough place for them, or misc |
bac5e30
to
c15ccec
Compare
@tkelman Done |
c15ccec
to
f4d970f
Compare
Useful to avoid the need for users to break encapsulation by directly referencing the fields of
RefValue