-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.
Description
I've written a lot of code like this for libraries that use Iterators where the Item is a Result:
for line_r in stdin.lock().lines() {
let line = line_r?;
// do something with line
}
I think it would be awesome if we could just relocate the ?
to the pattern, like this:
for line? in stdin.lock().lines() {
// do something with line
}
eddyb, jD91mZM2, dlight, Nokel81, Avi-D-coder and 11 moredlight, anyputer, spinda and Radviger
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language team, which will review and decide on the RFC.Relevant to the language team, which will review and decide on the RFC.