Skip to content
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

RFC: Extend pattern syntax #263

Open
rust-highfive opened this issue Sep 24, 2014 · 1 comment
Open

RFC: Extend pattern syntax #263

rust-highfive opened this issue Sep 24, 2014 · 1 comment
Labels
A-control-flow Proposals relating to control flow. A-patterns Pattern matching related proposals & ideas A-syntax Syntax related proposals & ideas postponed RFCs that have been postponed and may be revisited at a later time. T-lang Relevant to the language team, which will review and decide on the RFC.

Comments

@rust-highfive
Copy link

Rendered view

Tracking issue for postponed PR #99

@rust-highfive rust-highfive added the postponed RFCs that have been postponed and may be revisited at a later time. label Sep 24, 2014
@nrc nrc added the T-lang Relevant to the language team, which will review and decide on the RFC. label Aug 17, 2016
withoutboats pushed a commit to withoutboats/rfcs that referenced this issue Jan 15, 2017
Add a ergonomic method to convert a list of futures into a stream
@Centril
Copy link
Contributor

Centril commented Oct 7, 2018

Current status:

  • Allow for parenthesisation of patterns.
  • Change @-patterns to allow a pattern on either side.
  • Add alternation (|) to patterns properly.
  • Add pattern guards (pattern if condition) to patterns properly.
  • Treat repeated variables as implicit guards for equality.
  • Change the syntax of match-expressions/-statements to take a normal pattern.
    • Or-patterns part done
    • Pattern guards done
  • ! patterns (Extend Patterns #2150)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-control-flow Proposals relating to control flow. A-patterns Pattern matching related proposals & ideas A-syntax Syntax related proposals & ideas postponed RFCs that have been postponed and may be revisited at a later time. T-lang Relevant to the language team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

3 participants