GridVids
Sign in with YouTube

One of the most common mistakes in Go is about to be fixed

Dreams of Code Feb 4, 2024 12: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

They finally fixed it. This mistake is one of the more common mistakes you can make when writing Go code. The Go developers have realized this, and so they're going to be resolving it in the next major release of Go. We don't have to wait until then, however, as we can actually test the fix today. Become a better developer in 4 minutes: https://bit.ly/45C7a29 👈 Video Links: Golang FAQ on the issue: https://go.dev/doc/faq#closures_and_goroutines Blog Post with Fix: https://go.dev/blog/loopvar-preview 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 #loops #variables #reference #concurrency #closure #goroutines