|
|
|
|
|
by Peaker
5106 days ago
|
|
It's not just comparing against nil, it's any comparison or switch-case besides a type-switch. A type-switch seems to be non-boolean-blind indeed, but it seems to have too much syntactic overhead, as Go code generally uses if branches when a type-safe case is due (e.g: When analyzing return codes). |
|