Deprecations: Any reason left for warning stage?
David Nadlinger via Digitalmars-d
digitalmars-d at puremagic.com
Sat Oct 4 14:25:01 PDT 2014
On Monday, 29 September 2014 at 15:13:28 UTC, Daniel Murphy wrote:
> But that's a good thing - the people who get their code broken
> are the people who are asking for it with '-w'.
I don't think there is much merit to this argument.
First, it's not like the ability to make diagnostics halt the
build is something specific to Warnings. Just pass -de and use of
deprecated symbols will halt compilation too. (Actually, not
passing -de would lead to a funny
error(Warning)->warning(Deprecation)->error(Error) progression
right now.)
Second, if I'm using "-w", I'm typically interested in errors if
I write fishy code, not because some third-party library I just
updated made a small change to its API. I don't see where the
advantage would be in conflating the two things.
David
More information about the Digitalmars-d
mailing list