|
|
|
|
|
by thiht
508 days ago
|
|
I really hate that a bare ? makes us lose some info on code coverage. If you only test the happy path, the line is counted as covered. Making the return explicit at least makes it obvious when a line is uncovered. But my biggest beef is the implicit variable declaration, I can’t stand it. That’s just lazy, bad design. That’s not a great proposal overall, and I suspect if the same proposal had been made by someone else outside of the Go core team, we would have not heard of it. I hope it gets rejected. |
|