Re:Golang landmines
by Matthias247 on Sunday September 18, 2016 @04:56AM
(#12524490)
Sorry - the question is not immediatly understandable. If you mean how 'var t *Tabby = nil' is different from the interface representation: For this one no type information is stored at runtime. It's only a single pointer. Whereas an interface at runtime is always represented by 2 fields, a pointer and a type field.
[ Parent
| on HN ]
Re:Golang landmines
by thaumasiotes on Sunday September 18, 2016 @07:19AM
(#12524852)
Thanks. It didn't occur to me that non-interface types might not actually carry type information.