Open
Description
Location
https://doc.rust-lang.org/reference/expressions/loop-expr.html#iterator-loops
Context
I was reviewing a test cleanup PR rust-lang/rust#141974, and I was trying to say something about the EXPR
in
for PATTERN in EXPR {
// ^--- what is this expr called?
// ...
}
but I couldn't find a good term for this12. The current grammar calls this EXPR
Expressionexcept struct expression
whereas for e.g. match EXPR { .. }
or if let PATTERN = EXPR { .. }
, there's a more "meaningful name" for that EXPR
, which is the scrutinee expr.
Footnotes
Metadata
Metadata
Assignees
Labels
No labels