2 ms·
Deprecating is as simple as emitting a diagnostic whenever it occurs, rate-limited to once per translation unit, say.
by kazinator 8y ago
Deprecating is as simple as emitting a diagnostic whenever it occurs, rate-limited to once per translation unit, say.
- jandrese 8y agoYes, but it also means fixing all of that old code before you can turn the depreciation into full on removal. It would be interesting to note that such warnings would undoubtedly point out a few errors in existing code where people 0 padded a number they expected to be decimal. Many would be harmless, 00001 for example, but a few could have been causing unintended side effects (incorrect initialization values for example).