4 ms·
I might be misunderstanding go, but I think the big difference is you use anyhow to get looses error handling at the edges of binaries. It'd be weird to see in
by iudqnolq 6y ago
I might be misunderstanding go, but I think the big difference is you use anyhow to get looses error handling at the edges of binaries. It'd be weird to see in a published library, and unusual to see deep in an internal library that supports a binary. Whereas in go you do that sort of error handling everywhere.
- tptacek 6y agoI think %w makes sense in libraries, too. They're structured errors that behave like strings. It's a neat trick.