Re:Things I Love About Go
by Peaker on Friday June 22, 2012 @07:36PM
(#4149456)
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).
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).