2 ms·
Sorry, that shot right past me. The article sounded, to me anyway, impressed the interface didn't exist. Seeing the cast/check against the anonymous interface l
by Rapzid 4y ago
Sorry, that shot right past me. The article sounded, to me anyway, impressed the interface didn't exist. Seeing the cast/check against the anonymous interface left me unimpressed haha.
> It is not uncommon practice in Go to make "copies" of interfaces to avoid extra dependency (or cyclic dependency).
I hadn't really noticed but my exposure to the source is spotty. See what they are doing there and can imagine why, it just irks me.
There are now implicit, "standard" shapes for Error that don't have named, exported interfaces and presumably anyone wanting to write code around both Unwrap shapes will need to reach for the same techniques to suss out what they are dealing with..