7 ms·
In Go, if one would ignore the error, it could result in a panic or the program would continue with some unexpected state. Go projects work on an honour system
by styluss 10mo ago
In Go, if one would ignore the error, it could result in a panic or the program would continue with some unexpected state. Go projects work on an honour system and either return Nils with errors or empty structs.
- dontlaugh 10mo agoThe same case in Go would’ve probably been a nil panic.