On Friday, September 26, 2014 23:12:47 Daniel Kozák via Digitalmars-d wrote: > The only one and right solution is print warning message by default > > ----- Původní zpráva ----- > Od:"David Nadlinger via Digitalmars-d" <[email protected]> > Odesláno:26. 9. 2014 18:20 > Komu:"[email protected]" <[email protected]> > Předmět:Deprecations: Any reason left for warning stage? > > As Walter mentioned in a recent pull request discussion [1], the > first formal deprecation protocol we came up with for language > changes looked something like this: > > 1. remove from documentation > 2. warning > 3. deprecation > 4. error
This makes no sense now. Realistically, warning is more restrictive than deprecation at this point, because -w makes warnings errors, and the equivalent for deprecated is probably used much less (certainly, it's much newer and therefore less likely to be used). So, step 2 to 3 is essentially making things _less_ restrictive. And really, warnings have nothing to do with deprecation. Using them made sense when there was no way to print deprecation messages without having them be an error, but now that deprecation messages are just messages normally and do not alter compilation at all, using warnings for deprecation makes no sense at all. - Jonathan M Davis
