GeistHaus
log in · sign up

Go 1.20 Release Notes

tip.golang.org
4 pages link to this URL
a BIT mighty

I like bits, bits are mighty. With bits you can do impressive things!

0 inbound links website en
Type Specialization in Go

This post was originally tweets but then things happened, and it needed a new linkable home. Btw, I’m now @commaok@inuh.net on Mastodon. This post is about manual type specialization, which can make a big difference in some hot code. Consider this: type Gopher interface { Goph() } func f(x Gopher) { // ... if t, ok := x.(*T); ok { t.Goph() } else { x.Goph() } // ... } It’s weird.

0 inbound links article en post