Rust: Tracking issue for RFC 2294, "if let guard"

Created on 28 May 2018  路  8Comments  路  Source: rust-lang/rust

This is a tracking issue for the RFC "if let guard" (rust-lang/rfcs#2294).

Steps:

Unresolved questions:

  • [ ] Work out the exact semantics / borrowck (cc @nikomatsakis, @pnkfelix)
B-RFC-approved C-tracking-issue E-help-wanted T-lang

Most helpful comment

Currently looking into this, though I'm not sure I will be able to implement all of it

All 8 comments

:wave: After a conversation about this change with @varkor I'm starting to take a look at this with a view to implementing it!

@imjacobclark Hey. Any progress over the past few months? :-)

Just ran into a case where this ability would be useful. I look forward to this feature landing someday!

+1 This would be a nice feature to have!

Am currently learning Rust and thought it was unintuitive that I couldn't write this syntax. (Thought I must be mis-writing it somehow.) Lo, here it is in progress! Woo~

Any update on this? :)

I was willing to take a look at this, but I didn't have time to... I'll try to free some time for this ASAP!

Currently looking into this, though I'm not sure I will be able to implement all of it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mark-Simulacrum picture Mark-Simulacrum  路  681Comments

withoutboats picture withoutboats  路  211Comments

Centril picture Centril  路  382Comments

withoutboats picture withoutboats  路  202Comments

alexcrichton picture alexcrichton  路  240Comments