Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Proposal: errors: merge github.com/pkg/errors #16968
I think that the API suggested by @davecheney in his GopherContalk and implemented in the repo github.com/pkg/errors should be integrated into the errors package of the standard lib.
I learned that this is already his plan , but failed to find an issue or proposal here to track the progress, hence I created this one.
I very much like @davecheney's const error suggestion (
I'm not sure I would care for Errorf gathering a stack trace. It's handy in some situations, that seems like unnecessary overhead for the general case.
Perhaps I just do not see what benefits this provides. It seems more like a debugging tool, imo.
As @davecheney said (https://twitter.com/davecheney/status/771688315573579778), the bar to entry for the standard library is very high.
I would ask for Dave to write a more formal design document and enter the proposal process, but I can say at this point that the likelihood of this happening is close to zero. I agree we should do something more about errors, but it's more of a Go2 item.
I'm going to close this for now.
On Tue, Oct 25, 2016 at 9:16 AM, Brad Fitzpatrick firstname.lastname@example.org