4 ms·
It has already caused several issues in golang, and this is an example: https://github.com/golang/go/issues/16474 https://github.com/golang/go/issues/16474
by apta 7y ago
It has already caused several issues in golang, and this is an example: https://github.com/golang/go/issues/16474 https://github.com/golang/go/issues/16474
- masklinn 7y agoThat’s a different issue. This is not just using structural interfaces but downcasting to even lower interfaces without warning. That is, the method lies about what it’s looking for.
- deleted 7y ago[deleted]
- apta 7y agoIt will cause issues if a type implements the interface where it didn't mean to.