Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以解释一下 Spec# 可能会转移到 C# 4.0 中的关于代码合同的概念吗?
谢谢!
我个人是一个叫 Bertrand Meyer 的人的忠实粉丝,他写了这本书叫面向对象的软件构造,并创建了一种名为 Eiffel 的语言,它支持按合同设计或基于合同的编程。
你可能想看这个系列的视频链接
这是直接来自Microsoft Research的代码合同的很好描述。听起来主要的好处是: