Repository navigation
all: add support for const ident in match range - #16526
Merged
Merged
Conversation
Delta456
requested review from
joe-conigliaro,
medvednikov,
spytheman and
yuyi98
November 24, 2022 17:32
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
spytheman
reviewed
Nov 24, 2022
Member
|
This seems to be too much code for such a basic feature. Shouldn't the extra checks be unnecessary, since both parts of the expressions are already checked, for example? |
medvednikov
reviewed
Nov 25, 2022
Member
Author
I also feel the code is too much but this implementation needs to have lots of checks, testing and examples to see every single case working. Indeed, some extra checks might be unnecessary but hopefully we can minimise it by reviewing this PR or after getting this PR merged. |
…heir type determined (makes match branching checks and cgen easier and simpler
Contributor
|
I've made some cleanups/fixes that generalize the checks here, but I am still waiting for the tests to pass locally. |
spytheman
marked this pull request as draft
November 25, 2022 13:19
…cisions at once after the loop
spytheman
force-pushed
the
const_range_expr
branch
from
November 25, 2022 13:30
1f4b7a6 to
0754551
Compare
JalonSolov
reviewed
Nov 25, 2022
…nsage` -> `unsafe`
This file contains hidden or 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
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.
Implements #16480
Code Demonstration:
Output: