Skip to content

Details

Lets talk about the experimental rangefunc feature!

In this session, we'll try to build an intuition about how to write and use range functions by discussing how the compiler re-writes "range" loops to execute supplied functions so that we can make any type -- not just slices, hannels, maps, ints, etc. rangeable!

It is a little technical but open to all gophers.

My intention is demonstrate its use and implementation and to supplement the amazing blog and wiki content that already exists.

Until then, please do read both the blog and wiki:

https://go.dev/blog/range-functions
https://go.dev/wiki/RangefuncExperiment

Golang
Computer Programming
Concurrent Programming
Open Source
Software Development

Members are also interested in