Re:Maybe adding generics to Go is about syntax after all
by cyphar on Tuesday September 04, 2018 @10:50AM
(#17909423)
I'm not sure you understand what I mean -- the "unique to a line" message is actually a descriptive message not a line number. errors.WithStack gives you the file, line, and function name for free and works with handle -- my complaint is that giving descriptive and stacked error messages will be very hard with handle (but is not fundamentally hard with Rust's map_err even though their error packages aren't as well-developed as Go's from my experience).
[ Parent
| on HN ]
There are no comments on this comment yet.