-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeProposalProposal-Acceptedcompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Milestone
Description
In discussion during the implementation of #61405 we changed range-over-func to require mentioning iteration variables. The idea is that if we do end up with idioms like:
for line, err := range FileLines("/etc/passwd") {
...
}
Then we want to diagnose:
for line := range FileLines("/etc/passwd") {
...
}
as an error. However, this is inconsistent with other range loops and also not what the #61405 text said. Probably we should change it. Starting a separate proposal for that discussion.
dominikh, magical, cespare, achille-roussel, AndrewHarrisSPU and 11 morejimmyfrasche, TheCoreMan, valyala and wlbwlbwlb
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeProposalProposal-Acceptedcompiler/runtimeIssues related to the Go compiler and/or runtime.Issues related to the Go compiler and/or runtime.
Type
Projects
Status
Done
Status
Done