3 ms·
> Go’s interface types provide a nice solution for this. Despite all of my various grievances with Go (on various levels), I strongly believe that interfaces w
by cyphar 9y ago
> Go’s interface types provide a nice solution for this.
Despite all of my various grievances with Go (on various levels), I strongly believe that interfaces were one of the things they did quite well.
I'm still making my mind up on whether Rust traits are an improvement in this department (though to be fair they are solving a harder problem because Rust has generics), but the fact that you can describe and use an interface without having to update every implementation is incredibly powerful.