2 ms·
> You can create the new functions and mark the current one as deprecated, either by documentation or by some code feature. Another D feature that is so simple
by WalterBright 7y ago
> You can create the new functions and mark the current one as deprecated, either by documentation or by some code feature.
Another D feature that is so simple in concept but miraculous in its effects - a "deprecated" attribute that can be applied to declarations. It enables plenty of warning given to users before it is removed.
- astrange 7y agoWell sure, but GCC and co have that too. It's a pretty good counter to people who think you should always use -Werror. One wrong deprecation could take you a month to fix!