@fasterthanlime one thing I like about Go, if I remember correctly, is that they have a policy against compiler warnings, either it's something you must fix our it's not, and people tend not to fix warnings

@quirk you want every unused variables to throw an error during debugging? 😰

@Gottox yes?? Why not?

I think that warnings are useless, cause people end up ignoring warnings if there are a lot of them

So, as a compiler writer you have to pick, is it a problem or not? Go chooses errors, other languages chooses to just ignore, Both choices are ok in my opinion

In go you can also just do the following to get rid of the error:
_ = x

Follow

@lexplt @Gottox that would be interesting, the thing that I don't like about warnings is that they can be allowed to accumulate over time and then they are all just ignored

I can see if you have ~5 warnings how that could still be useful, but 100 is not

· · 1 · 0 · 1

@quirk So the attitude is the problem. And objectively it makes difference if the code throws warnings left and right or the code is scattered by _ = x and other shinanigans to avoid them. Warnings are easier to spot though.

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!