Skip Navigation

Range over int and func, it's happening!

github.com spec: add range over int, range over func · Issue #61405 · golang/go

Following discussion on #56413, I propose to add two new types that a for-range statement can range over: integers and functions. In the spec, the table that begins the section would have a few mor...

Go 1.22 will ship with "range over int" and experimental support for "range over func" 🥳

0
0 comments