Re:Declined Proposal: A built-in Go error check function, “try”
by pixelrevision on Tuesday July 16, 2019 @08:49PM
(#20455417)
I don't really care about try/catch, I'd just rather they come up with a standard for wrapping errors so there is more visibility as they get bubbled up. Currently you can write code to do this but most packages will not be doing the same. There also will always be some member of your team fighting you about "simplicity" when you talk about wanting to have more info than a string to log.
[ Parent
| on HN ]
Re:Declined Proposal: A built-in Go error check function, “try”
by mvndaai on Friday July 19, 2019 @02:00AM
(#20476487)
The go 1.13 version of errors will have the `Is`, `As`, and `Unwrap` which make this almost a standard in go. They expect you to be able to unwrap but have not created a normal way to wrap. https://tip.golang.org/pkg/errors