Here, bloch echoes the conventional sun wisdom-that runtime exceptions should be used only to indicate programming errors, such as precondition violations 这里,bloch回应传统的sun观点运行时异常应该只是用于指示编程错误,例如违反前置条件。
Application verifier assists developers in quickly finding subtle programming errors that can be extremely difficult to identify with normal application testing 应用程序验证程序可以协助开发人员迅速找到细微的编程错误,而使用普通应用程序测试方法可能很难找到这些错误。
There are a whole host of easy-to-commit and hard-to-detect programming errors that are entirely eliminated by using immutable objects, such as failure to synchronize access across threads or failing to clone an array or object before storing a reference to it 使用不变对象可以彻底消除许多容易发生但难以检测的编程错误,如无法在线程间同步访问或在存储对数组或对象的引用前无法克隆该数组或对象。
3 ) the dissertation studies the theory and technology of testing, analyses the characteristic of program errors and combines these technology into 00 technology to develop the tool of testing, which named errseed, based on error injection arithmetic 3)研究了软件测试理论和技术,将软件植错技术与面向对象技术结合。根据所确定的植入错误的种类,分析了每种错误的特征,从而研究开发了c++软件植错工具errseed。
To free developers of dealing with the sorts of exceptions that occur as a result of programming errors or that the program could not be expected to catch dereferencing a null pointer, falling off the end of an array, dividing by zero, and so on, some exceptions are nominated as unchecked exceptions those that derive from 对于因为编程错误而导致的异常,或者是不能期望程序捕获的异常(解除引用一个空指针,数组越界,除零,等等),为了使开发人员免于处理这些异常,一些异常被命名为非检查型异常(即那些继承自
Our purpose is to supply a common method for type information collection of high-level programming languages, so that we can lower the difficulty of the implemention of type system and the possibility of occurence of the program errors; simplify the intermediate presentation of high-level programming language, so that we can do code generation and optimization conveniently 目的是为高级语言的类型信息的提取提供一般方法,从而降低类型系统实现的难度以及产生程序错误的可能性,并且简化高级语言的中间表示,便于后端的代码生成和优化。
But the most important characteristic-and the one likely to be concretely useful-is the elimination of side-effects or at least their containment to special areas like monads . a very large percentage of program errors-and the problem that drives programmers to debuggers-occur because variables obtain unexpected values during the course of program execution 类(或其实例)中,能收集一些数据--可以以任意顺序--一旦获得了所需的所有元素,就能调用这一对象的方法来完成这一大批数据的计算。