core icon indicating copy to clipboard operation
core copied to clipboard

Deprecate errors/merrors

Open SuperQ opened this issue 2 years ago • 1 comments

Now that Go 1.20 supports multi-error handling, it's probably time to deprecate and remove the merrors package. Similar, pkg/errors has been archived and this should probably be deprecated in favor of the stdlib errors package.

SuperQ avatar May 08 '23 07:05 SuperQ

Thanks!

We have to revisit merrors indeed, but https://github.com/efficientgo/core/tree/main/errors pkg exists on purpose, as stdlib error wrapping is not perfect (not really type safe, no stack trace). Explained a bit more in my book 🙃

bwplotka avatar Aug 03 '23 13:08 bwplotka