You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at the reference docs (stable and nightly), the sections on "if let expressions" and "while let expressions" both refer to "refutable let statements". I think there are two problems with this description:
The phrase "let statements" only appears in the section on "type coercions", and even there its meaning is only hinted at by example. Maybe this should somehow refer to the section on "declaration statements" (which itself doesn't currently mention let)?
The phrase "refutable let statements" is nowhere defined in the document. The section on functions mentions "function arguments are irrefutable patterns", but the notion of refutability doesn't get a good treatment. There are examples, which do help, but this is not necessarily the same thing as explaining it in prose, and a prose description would provide a place to hyperlink to.
(All this being said, I did clear up my own confusion on this by being able to look at the examples, which are super-helpful.)
The text was updated successfully, but these errors were encountered:
First, re-word the section on if let/while let to be more clear.
Second, actually call them let statements in the statement section
Fixesrust-lang#29801
First, re-word the section on if let/while let to be more clear.
Second, actually call them let statements in the statement section
Fixesrust-lang#29801
First, re-word the section on if let/while let to be more clear.
Second, actually call them let statements in the statement section
Fixesrust-lang#29801
First, re-word the section on if let/while let to be more clear.
Second, actually call them let statements in the statement section
Fixesrust-lang#29801
When looking at the reference docs (stable and nightly), the sections on "
if let
expressions" and "while let
expressions" both refer to "refutable let statements". I think there are two problems with this description:let
)?(All this being said, I did clear up my own confusion on this by being able to look at the examples, which are super-helpful.)
The text was updated successfully, but these errors were encountered: