|
|
|
|
|
by the_duke
2553 days ago
|
|
Just to clarify, I was aware that named returns already exist in Go. My main point is that this somewhat weird pattern is encouraged by the proposal since no other wrapping mechanism exists. And IMO wrapping is really essential for debuggable code. |
|
I suspect it's only "somewhat weird" due to lack of familiarity, and that adding an additional mechanism to wrap errors when one already exists is not in the spirit of a language built from small orthogonal components.