Oh no, not another ‘Is Rust better than Go?’ article. Seriously, haven’t we all had our fill of these comparisons by now? But before you sigh in exasperation, hear us out!

  • varsock@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    1 year ago

    I don’t have an opinion in this debate. I just started playing with Go and planning on doing so with Rust.

    I wanted to point to the fact that Go is also in flux and is also seeing changes to its semantics, and this is relavent in the current events with Go 1.21 being released less than a month ago.

    https://go.dev/blog/go1.21

    In a future version of Go we’re planning to address one of the most common gotchas of Go programming: loop variable capture. Go 1.21 comes with a preview of this feature that you can enable in your code using an environment variable. See the LoopvarExperiment wiki page for more details.