|
|
|
|
|
by saghm
1652 days ago
|
|
Slight nit: Rust does have an `Any` type[0] (and has since at least 1.0). Unlike Go's `interface{}`/`Any` type though, it's actually type-safe; the only way to get a value from it is to try to downcast into a concrete type, which returns an Option and will always be `None` if it doesn't match the type. [0]: https://doc.rust-lang.org/std/any/trait.Any.html |
|
If you continue to disagree with me, please be specific about what operation Go permits on interface{} values that you consider type-unsafe.