-
Notifications
You must be signed in to change notification settings - Fork 419
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
stringify
and universal cast-to-string deprecation
#22068
Merged
jeremiah-corrado
merged 35 commits into
chapel-lang:main
from
jeremiah-corrado:test-stringify-deprecation
Jul 27, 2023
Merged
stringify
and universal cast-to-string deprecation
#22068
jeremiah-corrado
merged 35 commits into
chapel-lang:main
from
jeremiah-corrado:test-stringify-deprecation
Jul 27, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
… deprecation Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
… fixes Signed-off-by: Jeremiah Corrado <[email protected]>
benharsh
reviewed
Apr 7, 2023
test/library/packages/UnitTest/AssertGreater/AssertGreaterTest.good
Outdated
Show resolved
Hide resolved
benharsh
reviewed
Apr 7, 2023
benharsh
reviewed
Apr 7, 2023
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
… string Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
…ange Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
benharsh
reviewed
Jul 25, 2023
benharsh
approved these changes
Jul 25, 2023
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.
Looks good to me! Just a couple of questions.
Signed-off-by: Jeremiah Corrado <[email protected]>
benharsh
approved these changes
Jul 26, 2023
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
Signed-off-by: Jeremiah Corrado <[email protected]>
1 task
jeremiah-corrado
added a commit
that referenced
this pull request
Jul 28, 2023
1 task
jeremiah-corrado
added a commit
that referenced
this pull request
Jul 31, 2023
Removes the potential for a deprecation warning when accessing a map of a non-primitive key type. The `Map` module's `KeyNotFoundError` uses `string.format` to create error message for keys of any type. However, one of map's `this` assessors was casting the key to string when creating a `KeyNotFoundError`, which can create a deprecation warning as of #22068. This PR removes that cast. - [x] paratest [ trivial - not reviewed ]
1 task
jeremiah-corrado
added a commit
that referenced
this pull request
Sep 14, 2023
Deprecate casting arrays to string. This is a continuation of the deprecation of the universal string cast from [this PR](#22068). See #19893 for more context. This deprecation recommends replacing: ```chapel var s = myArray: string; ``` with: ```chapel var s = "%?".format(myArray); ``` - [x] paratest [ reviewed by @riftEmber ] - Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed here,
stringify
is being deprecated in favor of"%?".format
. And the catch-all: string
discussed here (which relied onstringify
) is also being deprecated in favor of"%?".format
.Specifically, this PR makes the following changes:
stringify
stringify(x)
and"%?".format(x)
to differ for a few typeswritef
as it was only applicable forreadf
testing: