rust-lang / lang-team

Home of the Rust lang team
http://lang-team.rust-lang.org/
Apache License 2.0
200 stars 48 forks source link

Alternative model for pattern matching and match ergonomics #280

Open WaffleLapkin opened 1 month ago

WaffleLapkin commented 1 month ago

Summary

I have an alternative model for pattern matching and match ergonomics. This model solves the same problems as RFC 3627/Match ergonomics 2024 (part 3), but I argue that it is better in a number of ways.

Background reading

About this issue

This issue corresponds to a lang-team design meeting proposal. It corresponds to a possible topic of discussion that may be scheduled for deeper discussion during one of our design meetings.

WaffleLapkin commented 1 month ago

Since this interacts with a proposal that is interacting with an edition (namely RFC 3627) we should probably schedule this as soon as possible, if we don't want to postpone match ergonomics improvements to the next edition (whenever it might be).