Re:Go Subtleties You May Not Know
by formerly_proven on Wednesday October 22, 2025 @07:20AM
(#45667431)
> the return values aren't simple structs but slices or maps because []x is not a []X even if x implements X.
I assume this is because on is an array of struct pointers and the other is an array of fat pointers, since Go has reified interfaces (unlike higher-level languages).
I assume this is because on is an array of struct pointers and the other is an array of fat pointers, since Go has reified interfaces (unlike higher-level languages).