特别是,通过表示式不变量(representation invariant)和抽象函数(abstraction function)帮助代码阅读者读懂并理解代码。表示式不变量和抽象函数也有可能会扩展到其他方面,例如,在调试和测试方面。
基于20个网页-相关网页
The abstraction function and key invariants for the correctness of the code.
维持代码的正确性的抽象函数与关键常量。
Function objects are an important part of generic programming because they allow abstraction not only over the types of objects, but also over the operations that are being performed.
函数对象是一个重要的普通程序的一部分,因为他们允许抽象比类型对象还要多,而且比它正在执行的操作还要多。
At the core of functional programming is the function, just as classes are the primary abstraction in object-oriented languages.
函数式编程的核心是函数,就像面向对象语言的主要抽象方法是类。
Now I got one just simple thing, and I simply have isolated that module inside of that function.What about abstraction?
而现在我只要做一件简单的事,那就是我只需把这个模块,加到函数中去?
应用推荐