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

Comments

Projects
None yet
3 participants
@rust-highfive
Copy link

rust-highfive commented Sep 24, 2014

Rendered view

Tracking issue for postponed PR #99

@nrc nrc added the T-lang label Aug 17, 2016

withoutboats pushed a commit to withoutboats/rfcs that referenced this issue Jan 15, 2017

Merge pull request rust-lang#263 from weiznich/stream_futures
Add a ergonomic method to convert a list of futures into a stream
@Centril

This comment has been minimized.

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 (#2150)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.