4 ms·
>Not any more than you can forget about the returned error code in Go (val, _ := foo() etc). I'm pretty sure that's an underscore right there, that very explic
by mixedCase 10y ago
>Not any more than you can forget about the returned error code in Go (val, _ := foo() etc).
I'm pretty sure that's an underscore right there, that very explicitly means "I'm consciously ignoring this error". Not sure what you're talking about with Optionals and Conditionals. Errors in Go are in the end structs that satisfy the error interface. That doesn't have to be an errors.Error, you can implement your own to satisfy more complex needs.