-
Notifications
You must be signed in to change notification settings - Fork 425
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 readWriteThis methods #19983
Conversation
84bebf0
to
7df7faf
Compare
|
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.
Really minor suggestions, otherwise this looks good! Thanks for taking it on!
compilerError("Reading a Tokens type is not supported"); | ||
} | ||
|
||
proc writeThis(f) throws { | ||
// TODO: The `list` type currently doesn't support readWriteThis! |
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.
Should this comment also be updated?
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.
I think it's mainly referring to the <~> operator there. I can update it in the other PR.
7df7faf
to
f3a18d6
Compare
f3a18d6
to
0ccf2ec
Compare
Oh, sorry. I'd been skimming too quickly, and was only looking for the |
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>
…ed readWriteThis method Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
…d formats, and deprecate readWriteThis methods Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
These types didn't actually support reading because the compiler would have issued an error for the use of string literals with the <~> operator. Instead, issue a compilerError and no-doc the readThis methods. 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>
0ccf2ec
to
1964692
Compare
Fix read-write-locale-arg test to emit expected output I made an error in rebasing #19983 and took the wrong set of changes. Trivial, not reviewed.
This PR updates various modules and tests to use
readThis
andwriteThis
instead ofreadWriteThis
methods. Existing methods that weren't no-doc'd are left in place and given their own deprecation warning.This PR also adds a new future for reading a
map
: test/library/standard/Map/testMapIO.futureTesting:
TODO: