3 ms·
When is it OK to panic in Go?
- commandersaki 2y agoGoAWK uses panic & recover to simplify error handling in the recursive descent parser: https://github.com/benhoyt/goawk/blob/master/parser/parser.go#L63-L75 https://github.com/benhoyt/goawk/blob/master/parser/parser.g...