Go 1.18 arrives with much-anticipated generics Otesanya David March 26, 2022

Go 1.18 arrives with much-anticipated generics

Go 1.18 arrives with much-anticipated generics

[ad_1]

Go 1.18, featuring highly anticipated generics capabilities, is now generally available as a production release.

Downloadable at go.dev as of March 15, Go 1.18 introduces support for generic code using parameterized types. Generics has been called the most significant change to the Go programming language since the release of Go 1.0 in 2012. It was also the most-requested feature by Go programmers.

Subsequent releases will provide additional support for more complicated generic use cases. Users can learn about the feature via a generics tutorial and release notes.

The Go language server gopls and the Visual Studio Code Go extension now support generics. To install gopls with generics, see this documentation. To configure the VS Code Go extension, follow these instructions.

Production availability of Go 1.18 follows beta and release candidate stages, with the production release slipping slightly to mid-March. The release was previously expected February 2022.

Go 1.18 Beta 1, which arrived December 14, was the first preview release of the Google-developed open source language containing support for generic code using parameterized types. The first Go 1.18 beta was the most downloaded Go beta ever, with twice as many downloads as any prior beta.

Copyright © 2022 IDG Communications, Inc.

[ad_2]

Source link

Write a comment