表达式的副作用 meaning in English
expression's side effects
Examples
- This can produce unexpected results if you do not pay attention to the side effects of the expression
如果您没有注意表达式的副作用,则它可能会产生意外的结果。 - This allows you to formally reason about program behavior , because the meaning of an expression depends only on the meaning of its subexpressions and not on the order of evaluation or side - effects of other expressions
这使您可以从形式上推断程序行为,因为表达式的意义只取决于其子表达式而不是计算顺序或者其他表达式的副作用。 - For instance , an actual implementation need not evaluate part of an expression if it can deduce that its value is not used and that no side effects affecting the observable behavior of the program are produced
例如,如果某个具体实现可以推导出表达式中的某部分的值不会被用到,并且这一部分表达式的副作用不会对程序产生的可观察行为造成影响时,这个实现就无需对这部分表达式进行求值。