3 ms·
Unions and generics are indeed left out (see Go's FAQ). What do you mean by "lack of error handling"? Like Rob Pike says, errors are just values in Go, and you
by tagrun 12y ago
Unions and generics are indeed left out (see Go's FAQ). What do you mean by "lack of error handling"? Like Rob Pike says, errors are just values in Go, and you have the whole language to handle them. If you mean exceptions, there's panic and recover.
- yodsanklai 12y agoyes, I meant exception. I didn't know about panic and recover, i'll look into it. Thanks.