Fixing Interface Erasure in Go

by cdoxseyon 10/28/2021, 9:31 PMwith 2 comments

by tomohawkon 10/28/2021, 10:59 PM

> We can use a switch with an integer which Go can optimize into a jump table.

I wasn't aware that golang switch statements were ever turned into jump tables. But then again, maybe they will be soon?

https://go-review.googlesource.com/c/go/+/357330/