mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated ExperienceReports (markdown)
parent
bb850ad0e8
commit
7c219967e6
@ -88,6 +88,8 @@ Add new sections as appropriate.
|
||||
|
||||
## Error Handling
|
||||
|
||||
(This section is about writing `if err != nil`.)
|
||||
|
||||
- Andrew Gerrand, “[Error Handling and Go](https://blog.golang.org/error-handling-and-go),” July 2011,
|
||||
showing Go error handling patterns.
|
||||
- Martin Sústrik, “[Why should I have written ZeroMQ in C, not C++ (part I)](http://www.250bpm.com/blog:4),” May 2012,
|
||||
@ -102,6 +104,13 @@ Add new sections as appropriate.
|
||||
- André Hänsel, "[If Ⅰ were to make my own Go…](https://blog.creations.de/?p=223)", August 2017
|
||||
- Peter Goetz, "[Thinking About New Ways of Error Handling in Go 2](https://medium.com/@peter.gtz/thinking-about-new-ways-of-error-handling-in-go-2-e56d116952f1)," September 2017, shows how error-prone error handling in Go is and lays out requirements to improve the experience.
|
||||
|
||||
## Error Values
|
||||
|
||||
(This section is about additional error semantics beyond the `Error() string` method.)
|
||||
|
||||
- Andrew Morgan, “[What I Don't Like About Error Handling in Go, and How to Work Around It](https://opencredo.com/why-i-dont-like-error-handling-in-go/),” January 2017,
|
||||
about it being difficult to force good error handling, errors not having stack traces, and error handling being too verbose.
|
||||
|
||||
## File System
|
||||
|
||||
- Chris Lewis, “[Non-Local File Systems Should Be Supported](https://gist.github.com/cflewis/87843028576459b0f6ebf55f1b200891),” July 2017. Proposes replacing file system read calls to something more abstracted like the `sql` package does.
|
||||
|
Loading…
x
Reference in New Issue
Block a user