SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
spacedogroy@feddit.uk to Golang@programming.devEnglish · 2 years ago

Fixing For Loops in Go 1.22 - The Go Programming Language

go.dev

external-link
message-square
4
fedilink
  • cross-posted to:
  • golang@lemmy.ml
  • hackernews@lemmy.smeargle.fans
  • hackernews@derp.foo
33
external-link

Fixing For Loops in Go 1.22 - The Go Programming Language

go.dev

spacedogroy@feddit.uk to Golang@programming.devEnglish · 2 years ago
message-square
4
fedilink
  • cross-posted to:
  • golang@lemmy.ml
  • hackernews@lemmy.smeargle.fans
  • hackernews@derp.foo
Go 1.21 shipped a preview of a change in Go 1.22 to make for loops less error-prone.
  • mrkite@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    So it’s not really a problem with for loops, it’s a problem with closures inside for loops.

Golang@programming.dev

golang@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !golang@programming.dev

This is a community dedicated to the go programming language.

Useful Links:

  • Go Website
  • Effective Go
  • Go by Example
  • How to Start a Go Project

Rules:

  • Posts must be relevant to Go
  • No NSFW content
  • No hate speech, bigotry, etc
  • Try to keep discussions on topic
  • No spam of tools/companies/advertisements
  • It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 6 users / day
  • 7 users / week
  • 69 users / month
  • 188 users / 6 months
  • 28 local subscribers
  • 2.45K subscribers
  • 185 Posts
  • 304 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • RandomDevOpsDude@programming.dev
  • austin@programming.dev
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org