3 ms·
Interfaces allow polymorphic coding, and they support stack allocated data structures last I checked.
by lopatin 9y ago
Interfaces allow polymorphic coding, and they support stack allocated data structures last I checked.
- pcwalton 9y agoI didn't say you couldn't make polymorphic calls in Go. I said that they don't mix well with relying on escape analysis to avoid tracing GC.
- lopatin 9y agoOh I see what you mean. Yeah forcing vars to actually be stack allocated can be challenging when using interfaces everywhere. What are the Go authors' opinions on improving escape analysis?