V2EX  ›  英汉词典

Deprecated

定义 Definition

deprecated 是一个形容词/过去分词,意为"被弃用的,不推荐使用的"。常用于技术领域,表示某个功能、方法或做法虽然仍然可用,但已不再被推荐,未来可能会被移除。在更广泛的语境中,也可以表示"反对的,不赞成的"。

发音 Pronunciation

/ˈdɛprɪkeɪtɪd/

例句 Examples

This method is deprecated and will be removed in the next version.
这个方法已被弃用,将在下一个版本中移除。

The committee deprecated the use of outdated protocols, urging all departments to migrate to the new standard before the end of the fiscal year.
委员会反对继续使用过时的协议,敦促所有部门在财年结束前迁移到新标准。

词源 Etymology

deprecated 源自拉丁语 deprecari,由 **de-**(表示"远离")和 precari(意为"祈求")组合而成,原义为"通过祈祷来避开某事",即"祈求免除"。后来在英语中逐渐演变为"表示反对、不赞成"的意思。进入计算机领域后,这个词获得了"弃用"的特定含义,用来标记那些仍可运行但已不被推荐、将来可能被移除的功能或接口。

相关词汇 Related Words

文学与使用引用 Literary & Usage References

  • 在技术文档中极为常见,如 Python 官方文档、Java API 文档中大量使用 @Deprecated 注解来标记不推荐的类和方法。
  • Eric Raymond 的《The Cathedral and the Bazaar》中讨论了开源软件中功能弃用的策略与哲学。
  • Martin Fowler 的《Refactoring》一书中提到了如何在代码重构过程中妥善处理 deprecated 的接口和方法。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   6058 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
♥ Do have faith in what you're doing.