Re:Go Replaces Interface{} with 'Any'
by tptacek on Tuesday December 14, 2021 @07:14PM
(#29560099)
This is definitely not the current state of the art. Errors are values with types just like anything else in the language; dynamically populating calls to errors.New() is super weird (the point of errors.New is mostly to create global errors you can compare against), your errors nest without using %w, and there are a bunch of simple libraries that wrap typed stack traces in errors, just like there are a bunch of simple libraries in Rust that exist to make error types compatible with each other.
[ Parent
| on HN ]
There are no comments on this comment yet.