2 ms·
Go's err != nil has nothing to do with types though. It's just its own quirky convention. Python could similarly declare that exceptions are only for dead-end
by pornel 6y ago
Go's err != nil has nothing to do with types though. It's just its own quirky convention.
Python could similarly declare that exceptions are only for dead-end panics, and all error handling should be done by returning 2-element tuples.