digitalmars.D - Regarding warnings
- bearophile (10/10) Jun 29 2013 I suggest to remove the "-w" switch from the list of dmd/ldc2
- w0rp (4/14) Jun 29 2013 This might increase knowledge like you say. Plus, you'd have
- bearophile (5/8) Jun 29 2013 I think a "strong, silent type" of D compiler is not the best.
- Jonathan M Davis (3/13) Jun 29 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10147
- bearophile (7/8) Jun 29 2013 I have aggregated a request of mine to your issue 10147. Are you
- Jonathan M Davis (7/14) Jun 30 2013 I have no problem with that. The key thing here is that -w needs to be f...
- bearophile (9/13) Jun 30 2013 I'd like a list of all the warnings I have asked for. Recently I
- Andrej Mitrovic (2/3) Jun 30 2013 You still need them for language features that go through a deprecation ...
- Kagamin (6/7) Jul 01 2013 This problem is because the compiler processes warnings too
- John Colvin (7/17) Jun 29 2013 I've been using D heavily for well over a year now and I've never
- bearophile (6/12) Jun 29 2013 If you seem my first point, I am suggesting to remove "-w" from
- Andrej Mitrovic (4/7) Jun 29 2013 Regardless of any FR's I still want to ability for compilation to halt
- bearophile (9/12) Jun 29 2013 It's a fair desire, but for it probably the problems in Issue
- Andrej Mitrovic (3/7) Jun 29 2013 I've added a reply to the bugzilla issue, I think I might not even
- monarch_dodra (6/14) Jun 30 2013 No Just Colvin's. I usually try to compile with warnings, but
- John Colvin (3/16) Jun 30 2013 Yes, I understand. That's what I mean when I say opt-out not
- monarch_dodra (5/15) Jun 30 2013 Wouldn't it be better to "fix" "-w" in a way that is not:
I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they don't active them, so I suggest to activate informational warnings on default. And then I suggest to add a switch to disable the warnings, for the rare situations where you don't want them. Bye, bearophile
Jun 29 2013
On Saturday, 29 June 2013 at 16:07:57 UTC, bearophile wrote:I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they don't active them, so I suggest to activate informational warnings on default. And then I suggest to add a switch to disable the warnings, for the rare situations where you don't want them. Bye, bearophileThis might increase knowledge like you say. Plus, you'd have warnings about stuff like implicit switch case fall-through as the default. I think this idea sounds okay.
Jun 29 2013
w0rp:This might increase knowledge like you say. Plus, you'd have warnings about stuff like implicit switch case fall-through as the default. I think this idea sounds okay.I think a "strong, silent type" of D compiler is not the best. Maybe Walter can offer an opinion, even negative :-) Bye, bearophile
Jun 29 2013
On Saturday, June 29, 2013 18:07:55 bearophile wrote:I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they don't active them, so I suggest to activate informational warnings on default. And then I suggest to add a switch to disable the warnings, for the rare situations where you don't want them.http://d.puremagic.com/issues/show_bug.cgi?id=10147 - Jonathan M Davis
Jun 29 2013
Jonathan M Davis:http://d.puremagic.com/issues/show_bug.cgi?id=10147I have aggregated a request of mine to your issue 10147. Are you OK with this? (What I am asking in addition to your request is for informational warnings to be active on default and to be disabled on request.) Bye, bearophile
Jun 29 2013
On Sunday, June 30, 2013 02:03:47 bearophile wrote:Jonathan M Davis:I have no problem with that. The key thing here is that -w needs to be fixed in som manner, because it currently alters the behavior of programs. However, I'm sure that we disagree on the best handling of warnings in that I want them gone _completely_, whereas you seem to want to always add more of them. - Jonathan M Davishttp://d.puremagic.com/issues/show_bug.cgi?id=10147I have aggregated a request of mine to your issue 10147. Are you OK with this? (What I am asking in addition to your request is for informational warnings to be active on default and to be disabled on request.)
Jun 30 2013
Jonathan M Davis:However, I'm sure that we disagree on the best handling of warnings in that I want them gone _completely_, whereas you seem to want to always add more of them.I'd like a list of all the warnings I have asked for. Recently I have asked for a warning, but in the enhancement request I have also said that later it's supposed to become a deprecation and then an error. I agree with you (and Walter) that most warnings should eventually become errors. So I think we agree more than you believe :-) Bye, bearophile
Jun 30 2013
On 6/30/13, Jonathan M Davis <jmdavisProg gmx.com> wrote:I want them gone _completely_You still need them for language features that go through a deprecation stage.
Jun 30 2013
On Saturday, 29 June 2013 at 20:26:15 UTC, Jonathan M Davis wrote:http://d.puremagic.com/issues/show_bug.cgi?id=10147This problem is because the compiler processes warnings too early. If the is expression issues only warnings, it probably should succeed, because those warnings don't escape the is expression (just like errors). Only if they make it to be reported, turn them into errors and stop compilation.
Jul 01 2013
On Saturday, 29 June 2013 at 16:07:57 UTC, bearophile wrote:I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they don't active them, so I suggest to activate informational warnings on default. And then I suggest to add a switch to disable the warnings, for the rare situations where you don't want them. Bye, bearophileI've been using D heavily for well over a year now and I've never used -w (facepalm) That's good anecdotal evidence that it should be opt-out not opt-in. Brb... Recompiling all my code with -w to find out my stupid mistakes :p
Jun 29 2013
John Colvin:I've been using D heavily for well over a year now and I've never used -w (facepalm) That's good anecdotal evidence that it should be opt-out not opt-in. Brb... Recompiling all my code with -w to find out my stupid mistakes :pIf you seem my first point, I am suggesting to remove "-w" from the switches and to use "-wi" (actually I am suggesting "-wi" to become the default compilation mode). Bye, bearophile
Jun 29 2013
On 6/30/13, bearophile <bearophileHUGS lycos.com> wrote:If you seem my first point, I am suggesting to remove "-w" from the switches and to use "-wi" (actually I am suggesting "-wi" to become the default compilation mode).Regardless of any FR's I still want to ability for compilation to halt on a warning, even if it means a new switch. As for the whole -w/-wi thing, why can't people just read the list of switches?
Jun 29 2013
Andrej Mitrovic:I still want to ability for compilation to halt on a warning,It's a fair desire, but for it probably the problems in Issue 10321 need to be faced first.As for the whole -w/-wi thing, why can't people just read the list of switches?I have seen tens of times that this doesn't happen, in D.learn, in #D on IRC and with friends, students, etc. Silent compilers that keep the muzzle shut on default are not good enough. John Colvin's answer is not so unusual. Bye, bearophile
Jun 29 2013
On 6/30/13, bearophile <bearophileHUGS lycos.com> wrote:Andrej Mitrovic:I've added a reply to the bugzilla issue, I think I might not even need this behavior anymore, so I withdraw the request.I still want to ability for compilation to halt on a warning,It's a fair desire, but for it probably the problems in Issue 10321 need to be faced first.
Jun 29 2013
On Saturday, 29 June 2013 at 23:28:54 UTC, bearophile wrote:No Just Colvin's. I usually try to compile with warnings, but forget half of the time, because it is "yet another opt-in parameter". I *really* wish warnings were the default: D is "safe by default, dangerous explicitly": warnings (as errors) should also be the default.As for the whole -w/-wi thing, why can't people just read the list of switches?I have seen tens of times that this doesn't happen, in D.learn, in #D on IRC and with friends, students, etc. Silent compilers that keep the muzzle shut on default are not good enough. John Colvin's answer is not so unusual. Bye, bearophile
Jun 30 2013
On Saturday, 29 June 2013 at 22:26:13 UTC, bearophile wrote:John Colvin:Yes, I understand. That's what I mean when I say opt-out not opt-in.I've been using D heavily for well over a year now and I've never used -w (facepalm) That's good anecdotal evidence that it should be opt-out not opt-in. Brb... Recompiling all my code with -w to find out my stupid mistakes :pIf you seem my first point, I am suggesting to remove "-w" from the switches and to use "-wi" (actually I am suggesting "-wi" to become the default compilation mode). Bye, bearophile
Jun 30 2013
On Saturday, 29 June 2013 at 16:07:57 UTC, bearophile wrote:I suggest to remove the "-w" switch from the list of dmd/ldc2 switches, and later to remove that functionality too. It's better to keep only the informational warnings. I keep seeing people in D.learn that miss warnings because they don't active them, so I suggest to activate informational warnings on default. And then I suggest to add a switch to disable the warnings, for the rare situations where you don't want them. Bye, bearophileWouldn't it be better to "fix" "-w" in a way that is not: "warnings are errors" but: "compilation halts on first emitted warning" ? This would fix the entire problem of "w" vs "wi", no?
Jun 30 2013