它们提供了命令式语言通常不提供的一些工具。
They provide some tools that imperative languages usually don't.
在命令式语言中,输入相同而可能返回不同值的方法,都有副作用。
In imperative languages, any method that can possibly return different values, given the same input, has side effects.
函数为流程构建了功能模块,并具有传统命令式语言中所不具有的一些功能。
Functions form the building blocks for processing and are imbued with several features not found in traditional imperative languages.
尽管如此,对命令式语言程序员来说,状态的改变依然是程序设计错误的主要原因。
Still, state changes are consistently one of the chief causes for programming errors for imperative programmers.
如果您和大多数程序员一样,那么您一定是从像 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.
函数式编程为您提供了新的、不同的构建块,可以实现命令式语言使用其他机制实现的相同效果。
Functional programming gives you new, different building blocks to achieve the same goals that imperative languages accomplish with other mechanisms.
函数编程方式很容易理解,但是如果您习惯了过程序和关注状态的命令式语言,可能不太容易适应它。
The functional programming approach is easy to understand, but can be difficult to apply if you are used to the more procedural and state-focused imperative languages.
很难想像没有这些特征的编程语言,因为命令式语言“告诉我如何做”的方式是如此深刻地确立在我们的日常编程哲学中。
It's hard to imagine programming languages without these characteristics because imperative languages' "tell me how to do it" approach is so firmly entrenched in our everyday programming philosophies.
命令式语言程序员将对不使用流程控制就可以完成的工作而感到惊讶;如果不使用它,很多工作会更加简单,这将使他们更为惊讶!
Programmers of imperative languages will be surprised by what you can do without flow control; they'll be even more surprised at how much easier many tasks are without it!
递归在haskell中至关重要。与命令式语言要求你去表达求解的方式不同,haskell更倾向于让你提供问题的描述。
Recursion is important to Haskell because unlike imperative languages, you do computations in Haskell by declaring what something is instead of declaring how you get it.
对新程序员来说,命令式程序设计通常是一个更为自然和直观的起点,这就是为什么大部分程序设计说明都集中关注命令式语言和方法的原因。
Imperative programming is often a more natural and intuitive starting place for new programmers which is why most programming introductions focus on imperative languages and methods.
这意味着命令式的语言,如VB和C#,能调用主要为F#创建的函数化函数库。
This means imperative languages like VB and C# can call functional libraries created primarily for F#.
在命令式编程语言中,我们必须在算法中考虑每个原子步骤。
In imperative programming languages, I must think about each atomic step in my algorithm.
许多使用其他的程序设计语言范型的语言,例如面向对象的、命令式的,等等,也是动态语言。
Many languages using other programming language paradigms, such as object-oriented, imperative, and so on, are also dynamic languages.
似乎与C语言一样具有单调命令式和括号的语言都可以使用不同的范式形成。
It seems like the drab world of C-like, imperative, curly braces languages might be spiced up by a variety of paradigms.
表1显示了几种常见的命令式或声明式编程语言。
Table 1 shows several common programming languages categorized as either imperative or declarative.
因为宏可以以任何方式展开常规代码,所以如果声明式语言不能满足需要,那么随时可以切换回命令式编程。
Since the macro expands to regular code anyway, you can always switch back to imperative programming if the declarative language doesn't suit your needs.
MF:我认为AOP是一个完全不同的概念,不过通常认为借助领域特定语言来描述横切问题应该比用普通框架的命令-查询式接口更具可读性。
MF: I think AOP is an unconnected concept, other than in the generic sense that describing aspects with a DSL may be more readable than a framework's command-query interface.
不太久之前编程语言还可以毫无疑义地归类成“命令式”或者“函数式”。
Until relatively recently programming languages have fit neatly into either "imperative" or "functional" categories.
领域特定语言能够表达人们更深层次的思想是因为,和普通的命令-查询式API相比,领域特定语言以一种更加自然的方式表述领域内的不同变化。
DSLs dive into peoples' minds here because DSLs are a natural way to express variations, in comparison to a command-query API.
他们可能会验证每个表单字段,以删除电子邮件注入命令、嵌入式超文本标记语言(Hypertext Markup Language,HTML)标记和其他不当信息。
They may validate every form field entry to remove E-mail injection commands, embedded Hypertext Markup Language (HTML) tags, and other naughty bits.
WindowsPowerShell是一种免费的、基于网络的、命令行式的外壳和脚本语言,它是微软针对系统管理员设计的。
Windows PowerShell is a free Net-based command-line shell and scripting language designed for system administrators by Microsoft.
要使用函数性语言,只需要放弃命令式编程的风格。
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.
最受欢迎的通用编程语言(包括Python和其它面向对象的语言)在样式上绝大多数都是命令式的。
The most popular general purpose programming languages -- including Python and other object-oriented languages -- are predominantly imperative in style.
使用简明、全面的对话框或者相互式、直观、易学的命令语言完成工作。
Work with its clear, comprehensive dialogs or with its interactive, intuitive, and easy-to-learn command language.
口语化就是当代俄罗斯报刊语言的一个典型特征,具体表现在句法上就是分指结构、问答结构、接续结构、省略结构和命令式结构的大量运用。
The press language is now characterized somehow by fragmentation, question answer structure, omission, imperative and running on structure, which formerly occurred only in spoken language.
口语化就是当代俄罗斯报刊语言的一个典型特征,具体表现在句法上就是分指结构、问答结构、接续结构、省略结构和命令式结构的大量运用。
The press language is now characterized somehow by fragmentation, question answer structure, omission, imperative and running on structure, which formerly occurred only in spoken language.
应用推荐