logoalt Hacker News

Go 1.27 Interactive Tour

61 pointsby Hixon10today at 1:35 AM10 commentsview on HN

Comments

chenxiaolongtoday at 2:25 AM

This release also fixes runtime.findnull() to be compatible with MTE on Android ([1] and [2]). This was the only thing preventing MTE from being enabled for apps that use gomobile on MTE-compatible Android OS's like GrapheneOS.

[1] https://go-review.googlesource.com/c/go/+/749062

[2] https://go-review.googlesource.com/c/go/+/751020

nu2ycombinatortoday at 2:47 AM

Those Generics syntax in Golang seems so hard to read.

drivebyhootingtoday at 3:16 AM

Can generics be used to improve error handling and eliminate the if err pattern?

show 1 reply
Hixon10today at 1:36 AM

Some examples for the upcoming release https://go.dev/doc/go1.27

lilbigdoottoday at 2:34 AM

This level of generics actually has me interested a bit in Go now.

stingraycharlestoday at 2:30 AM

Am I the only one who’s absolutely shocked that Go finally is embracing generics?

Does anyone have a bit of an inside view into what changed in the perspectives of the language maintainers?

I’m not buying the “it took us 20 years to understand how to do it correctly” argument, as this is something you explicitly take into consideration when designing the language or not. And it was specifically not a part of language design, and is much harder to retrofit (backwards compatibility).

So what changed?

show 4 replies