Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Well 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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: