4 ms·
I think you read my comment as an invitation to debate dynamic vs. static safety checking. That seems like a deeply uninteresting debate. I'm just saying, there
by tptacek 5y ago
I think you read my comment as an invitation to debate dynamic vs. static safety checking. That seems like a deeply uninteresting debate. I'm just saying, there's a clear purpose to `interface{}`, and the same pattern shows up (though obviously much less frequently) in Rust.
- tomjakubowski 5y agoIn the interest of supplying information to the curious, the Rust equivalent is to use an Any trait object with down casting. https://doc.rust-lang.org/std/any/index.html https://doc.rust-lang.org/std/any/index.html