Uh oh!
There was an error while loading. Please reload this page.
TRPL: if let - #24643
Conversation
rust-highfive
commented
Apr 20, 2015
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
I wasn't sure what word to use exactly, suggestions welcome :)
There was a problem hiding this comment.
Ah, sorry, maybe “binds any appropriate parts of the value to the identifiers in the pattern”? subvalues or substructures seem too jargony on the contrary.
There was a problem hiding this comment.
Same here. It's not clear what is meant by “result of a pattern” since that's not a term we seem to use at all. Maybe:
In a similar fashion,
while letcan be used when you want to conditionally loop as long as a value matches a certain pattern. It turns code like this:
and while let
steveklabnik
commented
Apr 20, 2015
@jakub- thanks! Addressed on all fronts, and better for it. 😄 |
and while let