3 ms·
"else/else if" is not used very often in Go.
by thefounder 8y ago
"else/else if" is not used very often in Go.
- efaref 8y agoIt's not used very often here, either. Despite their claims at the top of the code of every `if` having a corresponding `else`, there are 140 `if`s, but only 20 `else`s and a mere 5 `else if`s.
- AstralStorm 8y agoMost of the ifs are for early termination. Using an else on one of these is wasteful.