Skip to content

Exploring Go's Range Over Function Types

Photo of Ayan George
Hosted By
Ayan G.
Exploring Go's Range Over Function Types

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

Photo of OrlanGo group
OrlanGo
See more events
Online event
This event has passed