4 ms·
When ever you would need to box a trait object in Rust Go automatically performs a heap allocation that is garbaged collected at some point. A bit more is expla
by webkike 9y ago
When ever you would need to box a trait object in Rust Go automatically performs a heap allocation that is garbaged collected at some point.
A bit more is explained here https://research.swtch.com/interfaces https://research.swtch.com/interfaces
Basically there are some property of Go interfaces that make them far more dynamic than traits and implementations in Rust.