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: Add a matches!(expression, pattern) macro. #264

Closed
rust-highfive opened this issue Sep 24, 2014 · 2 comments
Closed

RFC: Add a matches!(expression, pattern) macro. #264

rust-highfive opened this issue Sep 24, 2014 · 2 comments
Labels
A-expressions Term language related proposals & ideas A-macros-libstd Proposals that introduce new standard library macros A-patterns Pattern matching 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. T-libs-api Relevant to the library API team, which will review and decide on the RFC.

Comments

@rust-highfive
Copy link

Rendered view: https://github.com/SimonSapin/rfcs/blob/matches-macro/active/0000-matches-macro.md

Please note: This is different from the if let proposal. I believe the two proposals are complementary rather than competing.

Tracking issue for postponed PR #163

@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 T-lang Relevant to the language team, which will review and decide on the RFC. T-libs-api Relevant to the library API team, which will review and decide on the RFC. labels Aug 17, 2016
withoutboats pushed a commit to withoutboats/rfcs that referenced this issue Jan 15, 2017
They'll never be able to send more data, so they should wake up and react to
this fact.

Closes rust-lang#264
@Centril Centril added A-patterns Pattern matching related proposals & ideas A-macros-libstd Proposals that introduce new standard library macros A-expressions Term language related proposals & ideas labels Nov 26, 2018
@masklinn
Copy link

masklinn commented Jul 2, 2020

@alexcrichton maybe this PR can be either accepted & merged or just closed since the feature was merged in 1.42 (apparently directly via PR without referring back to RFCs): https://blog.rust-lang.org/2020/03/12/Rust-1.42.html#matches

@kennytm
Copy link
Member

kennytm commented Jul 2, 2020

matches! was tracked in rust-lang/rust#65721 and is already stabilized. Closing.

@kennytm kennytm closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-expressions Term language related proposals & ideas A-macros-libstd Proposals that introduce new standard library macros A-patterns Pattern matching 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. T-libs-api Relevant to the library API team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

5 participants