Re:Go Is a Well-Designed Language
by bb88 on Wednesday January 08, 2025 @08:49PM
(#42640727)
In golang, `panic()` and `return err` are two different ways of unwinding the stack. 80% of my error handling in go is `return nil, err`. But there's no reason syntactic sugar couldn't be applied for something like `when err { return nil, err} { err := doSomething() }`
[ Parent
| on HN ]
There are no comments on this comment yet.