2 ms·
Go's interfaces have these additional features: - They auto-implement on types that have the appropriate methods (a feature that probably is unwanted in Rust)
by Manishearth 12y ago
Go's interfaces have these additional features:
- They auto-implement on types that have the appropriate methods (a feature that probably is unwanted in Rust)
- They can be runtime downcasted via `.(type_name_here)`
- They can be runtime type switched via `switch foo.(type)`
I'm not sure of the vtable internals though.