你可以利用括号来改变数学的求值顺序。
You can change the mathematical order of evaluation by using brackets.
通常,操作数的求值顺序不会影响表达式的结果。
Often, the order of operand evaluation has no impact on the result of the expression.
如果所有操作符优先级一样,那么求值顺序就取决于它们的结合性。
If the operators all have the same precedence, then the order of evaluation depends on their associativity.
优先级或者说操作符的强度决定求值顺序;优先级高的操作符比优先级低的操作符先求值。
Precedence or operator strength determines order of evaluation; an operator with higher precedence is evaluated before one of lower precedence.
但是,在构建第一个查询之前,您应该知道ApacheDerby对select语句组件的求值顺序。
Before you build your first query, however, you should know the order in which Apache Derby evaluates the SELECT statement components. When Apache Derby processes a query, the order of evaluation is.
因此,在一串没有括号的由幂运算符和一元运算符组成的序列,会从左到右面求值(没有强制改变求值顺序)。
Thus, in an unparenthesized sequence of power and unary operators, the operators are evaluated from right to left (this does not constrain the evaluation order for the operands).
XSLT语言给了处理器很大的自由,让它可以按其选择的顺序对表达式求值,因为它没有副作用。
The XSLT language gives the processor great freedom to evaluate expressions in any order it chooses, because of the absence of side effects.
xpath函数可以按照任意的顺序求值任意多次。
XPath functions can be evaluated in any order and any number of times.
同时还按顺序回顾了最有意思的代码片段,并论述了两种不同的表达式求值方法。
We reviewed the most interesting code snippets along the way and discussed two different approaches to expression evaluation.
这几种形式都是等价的,不过参数总是按照其出现的顺序进行求值,因此对于最后一个示例来说,3会在1之前求值。
All forms are equivalent, except that arguments are always evaluated in the order they appear, so in the last example the 3 is evaluated before the 1.
这几种形式都是等价的,不过参数总是按照其出现的顺序进行求值,因此对于最后一个示例来说,3会在1之前求值。
All forms are equivalent, except that arguments are always evaluated in the order they appear, so in the last example the 3 is evaluated before the 1.
应用推荐