August 14th, 2024

Go 1.23

Go 1.23 has been released with enhancements to the toolchain, runtime, and libraries, including the "range-over-func" feature, opt-in telemetry, and updates to the standard library for improved performance.

Read original articleLink Icon
Go 1.23

Go 1.23 has been released, introducing several enhancements primarily focused on the toolchain, runtime, and libraries while maintaining compatibility with previous versions. A significant change is the inclusion of the "range-over-func" feature, allowing the "for-range" loop to accept iterator functions. The release also previews support for generic type aliases. The Go toolchain now includes an opt-in telemetry system to collect usage statistics, which can help improve the tool's performance. Notable updates to the Go command include changes to environment variable handling and new flags for commands like `go env` and `go mod tidy`. The `go vet` command has been enhanced to flag references to symbols that are too new for the current Go version. The runtime has improved error message formatting, and the compiler has reduced build time overhead for Profile Guided Optimization. Additionally, the new unique package allows for value canonicalization, and the iter package introduces user-defined iterators. Changes to the standard library include updates to timers and tickers, as well as enhancements in the crypto and database/sql packages. Overall, Go 1.23 aims to improve performance, usability, and maintainability for developers.

- Go 1.23 introduces the "range-over-func" feature for enhanced iteration.

- The release includes an opt-in telemetry system for usage statistics.

- Significant improvements have been made to the Go command and runtime error handling.

- New packages for unique value handling and user-defined iterators have been added.

- Updates to the standard library enhance functionality in timers, cryptography, and database operations.

Link Icon 1 comments
By @gnabgib - 2 months
Discussion (152 points, 8 hours ago, 67 comments) https://news.ycombinator.com/item?id=41237542