go
go
does not have exceptions.
- (They have something called
panic
, but you should only use it if an actual panic is called for.)
- But in
go
the caller has to handle all values returned by the callee.
- If you do not do that, it's a compile time error.
- They use this a lot for error handling: