GridVids
Sign in with YouTube

Function Iterators might just change the way we write loops in Go

Dreams of Code Apr 15, 2024 15:00
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

Chapters
The rangefunc experimental feature is now available with Go 1.22. Over the last couple of weeks I have been playing with this new feature to see how far I can push it, and I think it may just change the way we write some loops in Go. Sign up for my Golang course at: https://dreamsofcode.io/courses/command-line-apps-go (Website is written in Go, btw) Video links: - RangeFunc wiki: https://go.dev/wiki/RangefuncExperiment - Loop package: https://github.com/dreamsofcode-io/loop Join this channel to get access to perks: https://www.youtube.com/channel/UCWQaM7SpSECp9FELz-cHzuQ/join Join Discord: https://discord.com/invite/eMjRTvscyt Join Twitter: https://twitter.com/dreamsofcode_io
Science & Technology
#golang #rangefunc #experimental #1.22 #iterators #map #filter #reduce