-
Notifications
You must be signed in to change notification settings - Fork 18
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
P1371 Pattern Matching #166
Comments
P1371R1 Pattern Matching (Sergei Murzin, Michael Park, David Sankel, Dan Sarginson) |
EWG saw this: http://wiki.edg.com/bin/view/Wg21belfast/P1371-EWG EWG is interested in hearing more about pattern matching in the general direction presented
|
P1371R2 Pattern Matching (Sergei Murzin, Michael Park, David Sankel, Dan Sarginson) |
EWG Prague on Tuesday afternoon: Pattern matching should require a case that always matches.
Assuming we don’t mandate a case that always matches, if no case matched, we get UB.
Drop the expression form.
Drop the statement form.
Pattern matching shouldn’t have arbitrary lookahead.
|
EWG Prague Friday afternoon, discuss design tuning: an update from earlier this week, Pattern_Matching_Updates.pdf Non-void inspect expressions should have at least one pattern which, on its own, can match every possible value.
|
We discussed exhaustiveness checking in today's EWG telecon, and took the following poll: POLL We like the presented approach to exhaustiveness checking in pattern matching.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
EWG discussed "inspect is always an expression" in a telecon today. POLL: Allow break and continue leaving from inspect expressions.
Lots of other feedback was given to the authors, and everyone agreed to more exploration. We did not poll these. |
P1371R3 Pattern Matching (Michael Park, Bruno Cardoso Lopes, Sergei Murzin, David Sankel, Dan Sarginson, Bjarne Stroustrup) |
Today in the EWG telecon, we discussed Support goto jumping into a pattern.
Support goto jumping out of a pattern, when the goto jumps forward, not across a variable declaration or into a nested scope.
Support goto jumping out of a pattern, without additional constraints.
Support goto which remains strictly within its pattern.
Bjarne wrote a short paper to start our discussion, and will come back with a bigger paper which covers all the cases and feedback received. |
Bruno presented his implementation experience to EWG on 2021-02-25. |
EWG discussed Pattern matching identifier patterns syntax: let vs auto vs none on April 8th. POLL: annotate id-pattern with
POLL: if we annotate id-patterns with
POLL: keep the current p1371r3 proposal with
|
Adding needs-revision, this got EWG feedback in April of '21. |
P1371R0 Pattern Matching (Sergei Murzin, Michael Park, David Sankel, Dan Sarginson)
The text was updated successfully, but these errors were encountered: