2 ms·
> First, I want my program to immediately crash if I have a bug. An error being returned doesn't always mean there's a bug. > Go is like shell in that it keep
by vlunkr 5y ago
> First, I want my program to immediately crash if I have a bug.
An error being returned doesn't always mean there's a bug.
> Go is like shell in that it keeps going even if there's an error.
With both Go and shell scripts it's up to you if you want the program to keep going when there's an error.
- kbd 5y ago> An error being returned doesn't always mean there's a bug. The bug is not the error, the bug is the unhandled error.