How can you mark code as “not for future use”

后端 未结 4 2525
你的背包
你的背包 2021-02-19 17:04

I often end up in a situation where I want to discourage other developers from continuing to use a method or class. For example, let\'s say I have two library methods \"A\" and

4条回答
  •  时光说笑
    2021-02-19 17:45

    Personally I think that you should use ObsoleteAttribute, making sure that you use #pragma (see here for examples) to disable it where needed in the existing code.

    In time you fix the code.

提交回复
热议问题