-
-
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 names
for composite types in favor of fieldnames
#10332
Conversation
cbc538d
to
c1ba6a5
Compare
I thought the idea was to use fieldnames just to mean the field names of a composite type, and |
Yeah, I was not really sure about that. I'll change it. |
names
in favor of fieldnames
names
for composite types in favor of fieldnames
aa8ee40
to
a64d071
Compare
The module changes have been removed. |
Looks good, but this should be in NEWS.md |
@@ -797,7 +797,7 @@ sparse(D::Dense) = sparse(Sparse(D)) | |||
# Calculate the offset into the stype field of the cholmod_sparse_struct and | |||
# change the value | |||
function change_stype!(A::Sparse, i::Integer) | |||
offset = fieldoffsets(C_Sparse)[names(C_Sparse) .== :stype][1] | |||
offset = fieldoffsets(C_Sparse)[9] # field offset of C_Sparse.stype |
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.
no one is going to remember to change this...
- deprecate names() - abstract getting number of fields with `nfields`
a64d071
to
078eed6
Compare
@@ -28,7 +28,7 @@ New language features | |||
|
|||
Language changes | |||
---------------- | |||
|
|||
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.
What?
Adding trailing whitespace?
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.
shamed :(
078eed6
to
485b9de
Compare
Deprecate `names` for composite types in favor of `fieldnames`
For shame, there is no doc update here. |
Closes #10325.