proposal: Go 2: run for
loop in a goroutine with go
keyword
#36407
Labels
FrozenDueToAge
LanguageChange
Suggested changes to the Go language
Proposal
Proposal-FinalCommentPeriod
v2
An incompatible library change
Milestone
Go 2 Proposal
go
keyword runs a function in a goroutine. So when you want to run afor
loop in a separate goroutine, you have to do such thing:What if you could run a
for
loop like this ?I know it's a little confusing when it comes to considering the scope but I think it looks clean and minimal.
The text was updated successfully, but these errors were encountered: