3 ms·
https://github.com/rust-lang/rust/issues/131154 https://github.com/rust-lang/rust/issues/131154 has some discussion about all the possibilities. It's pretty sub
by sunshowers 2y ago
https://github.com/rust-lang/rust/issues/131154 https://github.com/rust-lang/rust/issues/131154 has some discussion about all the possibilities. It's pretty subtle, but I think everyone agrees that the current behavior of if let is unintuitive. Beyond that there are a bunch of possibilities none of which is clearly superior.
- GolDDranks 2y agohttps://github.com/rust-lang/rust/issues/131154#issuecomment-2444591506 https://github.com/rust-lang/rust/issues/131154#issuecomment... Especially this matrix was helpful! The behaviour that's going to be adopted in Rust 2024 is the Rust2024.1 one. They were having doubts about the rules becoming too complex/non-uniform, but at least dropping early means compiler errors rather than deadlocks.