How does this compare to "Accept interfaces, return structs" in Go?
How does this compare to "Accept interfaces, return structs" in Go?
Posted Apr 25, 2024 16:08 UTC (Thu) by davecb (subscriber, #1574)In reply to: How does this compare to "Accept interfaces, return structs" in Go? by rds
Parent article: Existential types in Rust
The Go structs are checked at compile-time, as are the interfaces, so it does have type safety. Go dislikes runtime stuff almost as much as Rust does (:-))
