Specifying this constraint through annotations means I no longer need to litter my code with repetitive conditionals that check for null and throw an exception on finding it. 通过标注指定这个约束条件意味着我的代码不再会被重复的条件弄得乱七八糟,这些条件检查null值,并且一旦找到该值就会抛出异常。
These template systems have no flow control& no loops or conditionals. 这些模板系统没有流控制&没有循环或条件。
You can write programs in Maxima using traditional loops and conditionals. You'll also find a hint of Lisp in Maxima ( from functions such as quoting, map and apply). 在Maxima中还可以找到Lisp的一些线索(从引用之类的函数、map和apply中)。
You won't have any trouble creating variables, looping, using conditionals, and creating functions. 您可以方便地创建变量、循环,使用条件和创建函数。
But none of them scale very well to the case where a routine creates a large number of local variables along the way, and winds its way into a nest of loops and conditionals. 但没有一种方法能很好地解决这样的情形:例程在运行中创建了大量的局部变量,并把它的运行简化为循环和条件的嵌套。
A good example of this is a process that involves a number of functions, some of which include one or more conditionals, such as if-else and switch statements. 例如涉及多个函数的过程,有些过程包含多个条件,如if-else和switch语句。
Knowing this, it makes sense that excessive conditionals are challenging to follow, and hence, hard to test and maintain. 了解了这一点,就会明白过多的条件会给以后带来麻烦,使测试和维护变得很困难。
Careful source analysis can reason through such conditionals to provably correct conclusions. 仔细进行源分析可以从此类条件推理出证实正确的结论。
The find command has many conditionals that allow you to choose files that meet specific requirements, such as the conceptual "all regular files modified after midnight and owned by Joe." Otherwise, grep-R suffices nicely. find命令具有许多选项,使得您可以选择满足特定要求的文件,如所有在午夜后修改过的、并由Joe拥有的常规文件。否则,使用grep-R就可以了。
Cheetah provides an# if directive that lets you set up if-then-else conditionals. Cheetah提供了一个if指令,该指令允许您设置if-then-else条件。
Sometimes, you can get by with a simple verification point, but sometimes you need conditionals, and sometimes you need to add a delay or a loop. 有时,您需要一个简单的验证点,但是有时您需要条件语句,还有时您需要添加一个延迟或者循环。
This is similar to the way C/ C++ handle conditionals: in an expression if ( x& y), if x is true, then y isn't evaluated. 这类似于C/C++处理条件的方式:在表达式if(x&y)中,如果x为真,则不计算y。
Next, we consider the infinite loop statement and conditionals. 接下来,考虑无限循环语句和条件。
This mechanism has the benefit of limiting repeated conditionals testing for certain constraints, such as collection sizes or the previously discussed not-null condition. 这种机制具有限制针对特定约束条件的重复条件测试的好处,如集合大小或之前讨论过的非null的情况。
By now, a pattern has emerged suggesting that gluttonous code ( long methods, too many public methods, excessive conditionals and imports, etc.) impairs readability, testability, and maintainability. 到目前为止,所给出的模式都在暗示臃肿的代码(长方法、太多的public方法、过多的条件和导入,等等)将影响可读性、可测试性和可维护性。
Of course, you can also create a global script and use conditionals and the environment variable HOSTNAME to choose the appropriate settings. 当然,您还可以创建一个全局的脚本,并使用条件和环境变量HOSTNAME以选择合适的设置。
What makes this excellent for users is that they are no longer restricted to simple assignments of values; configuration files expressed as Lua can have comments, conditionals, and more. 对用户来说,最棒的是他们不再局限于简单的赋值;用Lua表达的配置文件可以有注释、条件等。
These examples illustrate variables, conditionals, and loops in addition to some of the key features of Scheme. 这些例子演示Scheme的一些关键特性,此外还演示了变量、条件和循环。
Of course, you'd write a test case, but do you think your test case could isolate your particular change in that sea of conditionals? 当然,您应该编写一个测试用例,但您会认为该测试用例能将您的特定更改在条件从句的海洋中隔离起来吗?
Through recounting geophysical characteristics in west Gansu, detailed introducing unique geological structure in depths and controlling ore-forming conditionals in the region. 通过对甘肃西部地球物理特征的叙述,详细介绍了该地区独特的深部地质构造和控矿条件。
This is the first of the conditionals that we're going to see. 这是我们会学到的,第一个条件语句。
The present paper aims to explore various uses of meta-communicative conditionals ( MCCs) from a cognitive-pragmatic perspective. 本文是从语用认知的视角来探讨元交际条件句的用法。
English indirect conditionals and their degrammaticalization; 英语间接条件句及其非语法化(上)
It is noticeable in the field of grammar to study the theory of compound sentence, and conditionals is a main kind of all compound sentences, conditionals is composed of single sentence. 复句理论是语法界引人注目的问题,而条件句则是复句的一个重要类型。
A Study on the Acceptability of Conditionals with Future Orientation 英语将来时性条件句的可接受性分析
A Study of the Acquisition of English Counterfactual Conditionals by Chinese Learners 中国学习者对英语非真实条件句的习得研究
The solutions might require a novel data structure or an unusual set of loops or conditionals. 解决方案可能需要新奇的数据结构或者不同寻常的集合或算法,以及条件表达式。
Like conditionals, they allow a simple statement to proceed the expression that is being switched upon. 像条件语句一样,它允许一个简单的语句位于分支的表达式之前。
Expressions and conditionals specified using XPath 使用XPath指定的表达式和条件
Conditionals in Go have the same familiar if-else construction as those in C, but the condition need not be wrapped in parentheses. Go语言当中的条件句与C当中所熟知的if-else构造一样,但条件不需要被打包在括号内。