blob: bb46ac09a5efc7d8387797e7f7472c8a3941f240 [file] [log] [blame] [view]
Andrew Bonventreb163a6b2018-08-28 09:56:06 -06001# Go 2 Error Values Feedback
2
3This page is meant to collect and organize feedback about the Go 2 [error values draft designs](https://go.googlesource.com/proposal/+/master/design/go2draft-error-values-overview.md).
4
5Please post feedback on your blog, Medium, GitHub Gists, mailing lists, Google Docs, etc. And then please link it here.
6
7As the amount of feedback grows, please feel free to organize this page by specific kind of feedback.
8
Liambc0f6962018-11-28 15:01:20 -08009### Further Background
10
11- Ben Johnson, "[Failure is Your Domain](https://middlemost.com/failure-is-your-domain/)", June 2018
12
Liam43d23802018-12-20 10:33:44 -080013### Draft Implementation
14
15- Go Team, “[x/exp/errors](https://godoc.org/golang.org/x/exp/errors)”, November 2018
16
17- Torben Schinke, “[Implementation of the draft design](https://github.com/worldiety/errors)”, December 2018
18
Andrew Bonventreb163a6b2018-08-28 09:56:06 -060019### Error Inspection
20
Ilya Sinelnikov442e4682018-12-11 15:30:37 +030021 - Ilya Sinelnikov, "[`Is` and `As` differ in behavior which is unexpected](https://github.com/sidh/go2errorsinspection)", December 2018
Roger Peppef9c889b2018-11-07 21:13:46 +000022 - Roger Peppe, "[Some thoughts about the draft Go error inspection design](https://gist.github.com/rogpeppe/a435b57473152e3429a5a149401edacf)", November 2018
Greg Weber4c151652018-09-04 22:51:55 -070023 - Greg Weber, “[Horizontal composition: Error inspection for groups](https://gist.github.com/gregwebs/5a14a83970d607411310a3e0281d55be)”, September 2018
Eyal Posener3b29f082018-09-19 13:00:42 +030024 - Eyal Posener, "[Reply](https://gist.github.com/gregwebs/5a14a83970d607411310a3e0281d55be#gistcomment-2710662)", September 2018
K. Alex Mills307ea6d2018-09-02 15:49:37 -050025 - K. Alex mills, "[Rename Wrapper to Unwrapper](https://gist.github.com/kalexmills/46c2cb276c69b659005d8705180b268a)", September 2018
jimmyfrascheb2caf732018-08-30 11:49:26 -070026 - jimmy frasche, "[Why limit this inspection to errors?](https://gist.github.com/jimmyfrasche/04ca2146c9130dab4d993365313722fb)", August 2018
Dan Kortschak8a2a1232018-08-30 08:42:51 +093027 - Dan Kortschak, [Carrying contract expectations and values causing errors in ev3go](https://github.com/ev3go/ev3dev/blob/master/errors.go), August 2018
Daniel Theophanes18e93752018-08-30 11:14:29 -070028 - Daniel Theophanes, "[Go 2 Design: Error Inspection with Error Lists](https://docs.google.com/document/d/e/2PACX-1vT-CPcBV53awF7vq5bJEi1Y_DkuVmWW0RWl-gsujByB1mjX67rH58-mex1on1waR4Q_gyhPu5TdghMv/pub), August 2018
Cosmos Nicolaou047335f2018-09-04 12:27:53 -070029 - Cosmos Nicolaou "[Inspection of errors in a different address space](https://github.com/cosnicolaou/core/wiki/go-2.0-error-handling-feedback)", September 2018
Chris Siebenmann58d67252018-09-07 20:20:02 -040030- Chris Siebenmann, "[Error inspection improves current annoyances but may not go far enough](https://utcc.utoronto.ca/~cks/space/blog/programming/Go2ErrorInspectionViews)", September 2018
weregamer1b742842018-08-31 12:04:02 -070031 - Paul Meyer, “[errors.New?]( - _Your Name_, “[_Title_](#URL)”, August 2018
Ian Lance Taylor7a903892018-09-25 13:49:14 -070032 - Vojtech Vitek "[adopt Cause and Wrap from github.com/pkg/errors](https://golang.org/issue/25675)", May 2018
Andrew Wilkinsfdb6dd52019-01-30 18:24:46 +080033 - Andrew Wilkins "[Programmatic Frame inspection](https://gist.github.com/axw/247b6f69d2da016bb21a5eb1be44e611)", January 2019
Carl Johnson3c8e4912019-02-07 13:57:11 -050034- _Carl Johnson_, "[_`As()` and `Is()` are useful for optional interfaces beyond error_](https://gist.github.com/carlmjohnson/d06cd8d10e0aef65f565a55cc57cd986), Feb. 2019
ques0942947ff372019-03-07 23:02:18 +090035 - ques0942, "[xerrors has less feature about trace's detail](https://dev.to/ques0942/xerrors-has-less-feature-about-traces-detail-4861)", Mar. 2019
Liamece873c2018-08-28 23:23:11 -070036 - _Your Name_, “[_Title_](#URL)”, _month year_
Andrew Bonventreb163a6b2018-08-28 09:56:06 -060037 - etc.
38
39### Error Printing
40
Calle Petterssonb1ea8e32018-08-29 08:50:23 +020041 - Calle Pettersson, [Multi-line errors and log collection tools](https://gist.github.com/carlpett/bc1714060235edc0ad3fd9ead82f4ce6)”, August 2018
jimmyfrascheb2caf732018-08-30 11:49:26 -070042 - jimmy frasche, "[Why limit these interfaces to errors?](https://gist.github.com/jimmyfrasche/e02fcbefee5cb14228768afec17abbee)" , August 2018
Chris Hinesb1fff252018-09-01 02:55:07 -040043 - Chris Hines, “[Types cannot implement both the errors.Formatter and fmt.Formatter interfaces
44](https://gist.github.com/ChrisHines/a732a9b1ef3acb6acfee2ccc174e31ed)”, _August 2018_
Dean Bassett47523182018-09-03 03:39:35 -040045 - Dean Bassett, “[Make errors.Detailer, not errors.Formatter](https://gist.github.com/deanveloper/61544f16a7d4c3d517bda10c08080270)”, _September 2018_
Liamece873c2018-08-28 23:23:11 -070046 - _Your Name_, “[_Title_](#URL)”, _month year_
Andrew Bonventreb163a6b2018-08-28 09:56:06 -060047 - etc.
andrewchambers6f991442018-08-29 11:08:00 +120048
49### Misc
50
TJ Holowaychuk8ad39db2019-04-02 19:40:20 +010051- TJ Holowaychuk, [Structured access for structured logging](https://gist.github.com/tj/638adb053f802e6c19686bd2fee443b7), April, 2019
mikiohc2548572018-10-02 13:55:03 +090052- Andrew Chambers, [My current error approach](https://gist.github.com/andrewchambers/5cadb2b8b45271440f1a051bb1ccc9c6), August, 2018
Nathan Ollerenshaw6d759732018-10-09 10:16:09 -070053- mikioh, [A walkthrough on Error Values for issue 18183](https://gist.github.com/mikioh/93f575120ded671bad18491ecf41743d), October, 2018
54
55### Against Any Change At All
56
Nathan Ollerenshaw5bbaf382018-10-09 10:17:51 -070057- Rob Pike - [Simplicity is Complicated](https://www.youtube.com/watch?v=rFejpH_tAHM), December 2015