Diamond interface composition in Go 1.14
Read OriginalThis technical article details the overlapping interfaces proposal implemented in Go 1.14, which now permits the embedding of interfaces with overlapping method sets. It explains the change using examples from the io package, demonstrates the resolution of diamond-shaped embedding graphs, and clarifies the compiler version requirements for enabling this feature.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser