TGViewer
ITGram ITGram @itgram_channel · 390 subscribers
Post #607 693
Go 1.21rc1 is released! It's not a final release yet, but we already can see what new features will be there, and that's huge:

1. Built-in function min, max, and clear. You know, like in all other normal programming languages.
2. Experimental fix for the loop variable capture, one of the most common Go mistakes.
3. Profile-guided optimization is now stable. The Go compiler itself now uses it to make its code 10% faster.
4. Structured logging, with both human-readable and JSON output. For me personally it 100% replaces any third-party logging libraries.
5. Generic functions for slices and maps.
6. WASI support. WASI is the standard of defining system calls in WebAssembly.

The release notes draft:
https://tip.golang.org/doc/go1.21

That's a short list but every item on it is amazing. I hope they'll pick enums (or union types, about the same thing, as Rust shows) next, the most requested Go feature at the moment.

#golang
More from @itgram_channel
  1. Jul 26, 2023taplo is a CLI tool (and a Rust library) for working with TOML. It can check TOML files fo…
  2. Jul 21, 2023Mutation testing is technique for evaluating how good your tests are. The idea is that a s…
  3. Jul 19, 2023refurb is yet another linter for Python. What makes it special is that it internally runs…
  4. Jul 18, 2023To make all my content accessible, I've provided source, website, and RSS for every projec…
  5. Jul 17, 2023A long time ago, I used to use Twitter to find out about new projects and blog posts. Late…
  6. Jul 17, 2023Channel photo updated
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →