Go 1.21 RC

3 years ago by Danakin to c/golang

Go 1.21 RC brings language improvements, new standard library packages, PGO GA, backward and forward compatibility in the toolchain and faster builds.

Go 1.21 release candidate is available.

It has some interesting changes in my opinion:

  • clear() for clearing maps
  • new slices package for common operations on slices
  • new maps package for cloning and comparing maps

And some somewhat interesting ones:

  • min/max function directly in the language without a package (could have easily been in math package, but then again, you can min/max strings with this?)
  • structured logging package

Some other optimizations and improvements.

What do you think?

load all comments
vegasq 1 point 3 years ago

clear I can understand, but min/max feels wrong.

path: 0 428285, hotness: undefined, score: 1, children: 0
golang
golang

@lemmy.ml

login for more options
1723
89
1

go to feed...