4 ms·
You can always use the black hole variable _ That mild inconvenience (which I almost never face while writing Go code after getting accustomed to the language
by mixedCase 10y ago
You can always use the black hole variable _
That mild inconvenience (which I almost never face while writing Go code after getting accustomed to the language and getting my editor to run goimports on save) has a big RoI in safety and program quality, which are much loftier goals than short term code-writing convenience.
- jimmaswell 10y agoI doubt the RoI is much more than if these were just suppressible warnings instead of errors, which work out great in C#.
- mixedCase 10y ago>which work out great in C#. They're greatly ignored in the real world.