<p dir="ltr">+1 to be able to suppress warnings locally.</p>
<p dir="ltr">This would allow to suppress a warning that I know is OK at that place, without suppressing the same kind of warnings elsewhere where they might be important.</p>
<br><div class="gmail_quote"><div dir="ltr">Dne st 21. 10. 2015 3:06 uživatel Evan Laforge <<a href="mailto:qdunkan@gmail.com">qdunkan@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Oct 20, 2015 at 5:48 PM, Mark Lentczner<br>
<<a href="mailto:mark.lentczner@gmail.com" target="_blank">mark.lentczner@gmail.com</a>> wrote:<br>
> Pretty much every shop I've worked at for the last 30 years has had a "must<br>
> compile clean with no warnings" policy, no matter the language. The reason<br>
<br>
That's actually not true for java at google.  However, after warning<br>
bankruptcy was declared, a small set were made into errors and the<br>
rest suppressed.  So that supports the idea of categorizing warnings<br>
into serious and advisory, and using -Werror only for serious ones.<br>
Of course, choosing which ones are which is likely to be a wrangle.<br>
<br>
In my personal code I do the same, that is try to make it warning free<br>
but only enable warnings that I consider worthwhile.  It would also be<br>
really nice to have pragmas to suppress warnings locally (e.g. ErrorT<br>
deprecation warnings from transformers-4, which seem to be impossible<br>
to fix without abandoning 7.8).<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>