让我们来看一看一些命令式的标题。
第三个视频有关命令式的并行处理。
命令式编程明确塑造了您的思维方式。
满足该要求的命令式分类如清单1所示。
An imperative class that meets these requirements appears in Listing 1.
许多命令式控制依赖破坏性赋值进行迭代。
Many imperative control structures rely on destructive assignment to do iteration.
它们提供了命令式语言通常不提供的一些工具。
They provide some tools that imperative languages usually don't.
清单1展示了用命令式风格编写的数字分类器。
Listing 1 shows the number classifier written in an imperative style.
表1显示了几种常见的命令式或声明式编程语言。
Table 1 shows several common programming languages categorized as either imperative or declarative.
要使用函数性语言,只需要放弃命令式编程的风格。
To use a functional language, you just need to let go of imperative programming styles. Learning to write in a more functional style has several benefits.
命令式编程的用户对赋值的依赖要超过其他编程技术。
Users of imperative languages rely on assignments more than any other programming technique.
经验7.可以用说明式的或命令式的方式表示转换。
Lesson 7. Transformations can be expressed declaratively or imperatively.
一般来说,当描述复杂的转换时,命令式的方法更适合。
In general, the imperative approach is more adaptable when describing complex transformations.Figure 7: a pattern of model elements in a reference model.
在命令式编程语言中,我们必须在算法中考虑每个原子步骤。
In imperative programming languages, I must think about each atomic step in my algorithm.
命令式编程和声明式编程方法之间的一个关键差异是完整性。
One critical difference between imperative and declarative programming methodologies is the notion of completeness.
在命令式语言中,输入相同而可能返回不同值的方法,都有副作用。
In imperative languages, any method that can possibly return different values, given the same input, has side effects.
声明性编程样式在声明约束方面几乎一直比命令式或过程序样式更直接。
A declarative programming style is almost always a more direct way of stating constraints than is an imperative or procedural one.
命令式的(特别是)面向对象编程风格采用结构和消息传递作为构建块。
The imperative (and especially) object-oriented programming style uses structure and messaging as building blocks.
不太久之前编程语言还可以毫无疑义地归类成“命令式”或者“函数式”。
Until relatively recently programming languages have fit neatly into either "imperative" or "functional" categories.
函数为流程构建了功能模块,并具有传统命令式语言中所不具有的一些功能。
Functions form the building blocks for processing and are imbued with several features not found in traditional imperative languages.
似乎与C语言一样具有单调命令式和括号的语言都可以使用不同的范式形成。
It seems like the drab world of C-like, imperative, curly braces languages might be spiced up by a variety of paradigms.
这意味着命令式的语言,如VB和C#,能调用主要为F#创建的函数化函数库。
This means imperative languages like VB and C# can call functional libraries created primarily for F#.
命令式的并行处理是基于并行版本的Do、For和For -Each操作。
Imperative parallelism is based on parallel versions of Do, For, and For-Each.
尽管如此,对命令式语言程序员来说,状态的改变依然是程序设计错误的主要原因。
Still, state changes are consistently one of the chief causes for programming errors for imperative programmers.
这种命令式的绘图模型更类似于opengl风格的绘制,而不是声明性的Web。
This model of imperative graphics owes much more to OpenGL-style drawing than to the declarative Web.
Ocaml被选中的一部分原因是,它支持函数式、命令式和面向对象的混合编程风格。
OCaml as was chosen a basis in part because it supports a mix of functional, imperative, and object-oriented programming styles.
大部分时间他都是写给自己成立的教会,所以他觉得自己有权威给这些教会,写命令式的信。
Most of the time he was writing to churches he himself founded, so he felt like he had authority over these churches to write authoritative letters.
实际上,如果对转换进行良好的文档记录,甚至可以在配置中混合声明式语句和命令式语句。
In fact, if the transformation is well documented, you can even mix declarative and imperative statements within your configuration.
许多使用其他的程序设计语言范型的语言,例如面向对象的、命令式的,等等,也是动态语言。
Many languages using other programming language paradigms, such as object-oriented, imperative, and so on, are also dynamic languages.
如果您和大多数程序员一样,那么您一定是从像 C++ 的命令式语言开始您的编程生涯的。
If you're like most programmers, you started your career with an imperative language like C++.
然而,造成这种现象的部分原因是大多数命令式语言没有提供相应的支持,因此使用递归很困难。
However, part of the reason lies with the fact that most imperative languages have lackluster support for it, making it more difficult to use than it should be.
应用推荐