News for hackers. Stuff that matters.
Re:I Love Go; I Hate Go by bluecalm on Tuesday August 02, 2016 @02:50AM (#12208207)
>>But it, and, more importantly, the use requirement for variables, has saved me from bugs repeatedly;

So how is it better than C where you get a warning (at least from GCC) that you have unused variables? You can quickly test things and you are coming back to fix all the warnings later anyway.

Re:I Love Go; I Hate Go by tptacek on Tuesday August 02, 2016 @02:51AM (#12208210)
You get warnings for lots of things in C. There's no getting around the use requirement in Go, at least not without crudding up your code.
Re:I Love Go; I Hate Go by StavrosK on Tuesday August 02, 2016 @08:31AM (#12209412)
I prefer what I do with Python in this regard: The IDE shows me unused variables, I can run my code with them, but I can't commit since the linting hook will produce a hard error at commit-time if something's wrong.

It's not as easy to do with a compiled language, of course, but I don't think it would be over the top to have the compiler exit with a non-success code if there are warnings when building.

The "warning fatigue" you get from C is because the warnings are either about false positives or about things that are too trivial to bother with, not because of a property inherent in compiler warnings themselves.

Re:I Love Go; I Hate Go by wtbob on Tuesday August 02, 2016 @09:18AM (#12209685)
> I prefer what I do with Python in this regard: The IDE shows me unused variables, I can run my code with them, but I can't commit since the linting hook will produce a hard error at commit-time if something's wrong.

The problem is that while you do that, essentially no-one else on the planet does — and anyone who uses a library thus has to deal with the fact that that library has approximately a 100% chance of having nits like unused variables.

Re:I Love Go; I Hate Go by StavrosK on Tuesday August 02, 2016 @11:13PM (#12215313)
Yes, it's true that sane defaults are supremely important.