-
Notifications
You must be signed in to change notification settings - Fork 426
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 <~> operator #19985
Deprecate <~> operator #19985
Conversation
00dc68f
to
9bdc8d1
Compare
Note that this will depend on #19983 being merged. |
9bdc8d1
to
c3959cb
Compare
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Splits up dsiSerialReadWrite on DefaultAssociativeDom, and uses a nested helper function for DefaultAssociativeArr's read/write methods. Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
…Rectangular arrays using Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Updates domain's dsiSerialReadWrite to use conditionals. Updates other methods to use a nested helper function. Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
c3959cb
to
9affc91
Compare
@lydia-duncan : this is finally ready for review. I've tried to make things look nice when possible, but there are a lot of In order to preserve the current behavior on main, I've used 'readIt' in our internal/standard/package modules rather than 'read'. This is because 'readIt' will throw an EEOF error, whereas 'read' will simply return false. This bool-returning functionality is nice in a while loop, but isn't all that helpful when trying to implement 'readThis' on a type. Checking that returned value is a bit cumbersome in that case, hence the admittedly ugly changes in this PR to use readIt. |
Anyways, I imagine this ultimately ties into some broader IO topic about the various read methods returning a bool. It would be nice if we could have something like swift here. Might look like |
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
This test logs all array accessor calls, which could happen in any number of places in the internal modules. If those array accessor calls are shuffled around with IO changes, then the output of this test could change unexpectedly and in a confusing way (e.g. an extra space appearing, or disappearing). This prediff targets and removes the exact array logging text, leaving the other output untouched. Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
@e-kayrakli : can you take a look at the prediff change to a local accessor optimization test (0ef5dad), and tell me whether this is reasonable or not? |
@@ -12,7 +12,7 @@ End analyzing forall (localArrays.chpl:56) | |||
|
|||
Static check successful. Using localAccess (localArrays.chpl:57) | |||
Testing 1D COO | |||
2 | |||
1 2 |
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.
While the changes look good, I can't understand the good file before your change. It looks like it should have always been printing out 1 2
. Do you have a guess why it wasn't? I don't really remember.
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.
Yeah, the line printed was """1default _array accessor was called\n""" because the logging call was printed immediately before the write call for '2'. Previously the prediff was removing entire lines with the logging output, and also removed the '1'.
I'm going to split this into multiple PRs as the changes replacing the IO operator are probably worth reviewing independently of deprecation. |
DRAFT
This PR updates our modules and tests to no longer use the <~> operator, and adds relevant deprecation warnings.
Testing:
TODO: