我不喜欢编写表达式和语句。
但是为时已晚,表达式和语句的区分已经根深蒂固。
The distinction between expressions and statements was entrenched.
函数返回值将在第4天“表达式和语句”中详细讨论。
Returning values from functions is discussed in detail on Day 4, "Expressions and Statements."
区分表达式和语句,在Fortran I中是很自然的,因为它不支持语句嵌套。
It was natural to have this distinction in Fortran I because you could not nest statements.
在第三章和第四章继续详细介绍表达式和语句的细节之前,非常有必要介绍一个本章例子中已经展示了的高层次的概念。
Before continuing on to consider the details of expressions and statements in Chapters 3 and 4, it is important to introduce one more high-level concept illustrated by the examples in this chapter.
现在,对模板表达式和语句有了一点感觉了吧。除插值表达式外,还有各种各样的数据绑定语法,是学习它们是时候了。
Now that we have a feel for template expressions and statements, we're ready to learn about the varieties of data binding syntax beyond interpolation.
与大多数现代编程语言一样,需要使用AND和OR语句对表达式或它们的值进行条件运算。
Like in most modern programming languages, the and and or statements are necessary for definitive conditional evaluations of expressions or their values.
只有在赋值和调用时,表达式才应被当作一条单独的语句。
The only expressions that should be used as statements are assignments and invocations.
一个用于读取语句和表达式的代码模型。
Perl的tr语句具有不同的语法,它更像sed的搜索和替换表达式。
Perl's tr statement has a slightly different syntax, more like sed's search and replace expressions.
更新2是一个SQLselect语句,其中包含与更新1相同的XMLQUERY函数、转换表达式和where子句。
Update 2 is an SQL SELECT statement with the same XMLQUERY function, transform expression, and WHERE clause, as in Update 1.
if语句(以及本文后面讨论的elif子句和while循环)中的表达式可以很复杂。
The expression used in the if statement (and in the elif clause and the while loop discussed later in this article) can be as complex as necessary.
也可以通过包含语句(5)中的整个TREAT(…)表达式(用给定值替换longitude和latitude)来执行显式转换。
Alternatively, you can make the transform explicit by including the whole TREAT (...) expression as in statement (5) (with longitude and latitude replaced by the given values).
和大多数语言一样,Scala的if测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
As in most every language, Scala's if evaluates a conditional expression, then proceeds to a block if the result is true or branches to an alternate block if the result is false. A simple example.
“let”语句本身由一个FLWOR(for、let、where、orderby和return)XQuery表达式组成。
The "let" statement is itself composed of a FLWOR (for, let, where, order by, and return) XQuery expression.
这种观点是直接从数学中借来的。在数学中,像“2 +3”这样的语句可以分析为:由“2”和“3”将“()+()”补充完整的函数表达式。
This view istaken over directly from mathematics, where sentences such as ‘2 + 3’ may beanalysed in terms of a function ‘( ) + ( )’ being completed by the arguments‘2’ and ‘3’.
另外,在研究和测试新的更新功能时,在select语句(而不是update语句)中嵌入包含转换表达式的XMLQUERY函数可能更方便。
Also, to explore and test the new update capabilities initially, you may find it convenient to embed the XMLQUERY function with the transform in a SELECT statement rather than an update.
将属性和度量转换为SQL表达式,这些表达式用来构造对多维数据集模型进行查询的sql语句。
Convert the attributes and measures into SQL expressions, which are used to construct the SQL statement to query the cube model.
上述语句指定了一个表达式,该表达式产生了一个布尔值和一个不返回任何结果的代码块(Unit),这正是while所期望的。
The arguments above specify an expression that yields a boolean value and a block of code that returns nothing (Unit), which is exactly what while expects.
和表达式一样,避免写复杂的模板语句。常规是函数调用或者属性赋值。
As with expressions, avoid writing complex template statements. A method call or simple property assignment should be the norm.
通过将set语句嵌入CASE表达式中,重写CASE和IFTHENelse语句。
Rewrite CASE and IF THEN ELSE statements with embedded SET statements into CASE expressions.
和表达式中一样,语句只能引用语句上下文中——通常是正在绑定事件的那个组件实例。
As with expressions, statements can refer only to what's in the statement context - typically the component instance to which we're binding the event.
讲解属性绑定之前,先深入了解一下模板表达式和模板语句。
But first, let's take a closer look at template expressions and statements.
因此,在每个语句,表达式的公理中的条件部分和结论部分都含有REASON。
SO, in every statement, the condition or conclusion of the axiomatic semantics of expression has the "REASON".
因此,在每个语句,表达式的公理中的条件部分和结论部分都含有REASON。
SO, in every statement, the condition or conclusion of the axiomatic semantics of expression has the "REASON".
应用推荐