Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

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.



I doubt the RoI is much more than if these were just suppressible warnings instead of errors, which work out great in C#.


>which work out great in C#.

They're greatly ignored in the real world.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: