模式:把所有可变值从应用程序配置转移到构建时属性中。
Pattern: All variable values are externalized from the application configuration into build-time properties.
每个属性旁边的图标表示使用固定值还是可变值。
The icon beside each property indicates the use of fixed or variable values.
标量是一个可变值。
全局变量表示一个可以使用sql语句访问和修改的可变值。
A global variable is a representation of a changeable value which can be accessed and modified using SQL statements.
不可变值是指在程序的整个执行过程中无法更改的值。
Immutable values are values that cannot be changed throughout the course of a program's execution.
编译器只会对具有显式参数的完整函数定义和简单的不可变值执行自动泛化。
The compiler performs automatic generalization only on complete function definitions that have explicit arguments, and on simple immutable values.
如果分配的值是可变值类,则该方法返回该类的浅表副本,因为值类拥有复制语义。
If the value being assigned is a mutable value class, the method returns a shallow copy of the class, because value classes have copy semantics.
使用不可变值是一种很好的做法,因为这样做可以使代码从函数编程的一个重要方面中获益。
Using immutable values is a good practice because doing this allows your code to benefit from an important aspect of functional programming.
通过把所有可变值集中在一个.properties文件,就可以把数据(可变属性)与行为(部署脚本)分隔开。
By centralizing all variable values into a single.properties file, you can decouple data (the variable properties) from behavior (the deployment scripts).
例如,虽然用户是可变实体,但是您可以使用不可变值对象来表示用户的地址,如果用户移动了位置,那么只需为该用户更改您所指向的地址。
For example, a user is a mutable entity, but you might use an immutable value object to represent the user's address, just changing the address that you point to for the user if he or she moves.
假象在每一个可变的加权值中。
带标记的消息还需要分配可变长度的数据元素来存储检索数据值而带来的空间开销。
A tagged message also has the space overhead of allocating variable length data elements to store the retrieved data values.
这与大多数语言不一样—变量的定义通常意味着值是可变的。
This is unlike most languages - the very definition of variable tends to imply that the value is variable.
注意,通过使值实例变量成为可变变量并不能可靠地完成这项操作。
Note that this operation cannot be achieved reliably by making the value instance variable volatile.
首先调用f的模板化版本,第一个参数的类型是字符串,作为大小可变的参数提供字符和双精度值。
The first time around, the templated version of f is called, with a string as the first argument type, and the character and double are packed off as the variable size argument.
ZFS为各种不同的使用实现了可变块大小(通常大小达到 128KB,但是您可以变更此值)。
ZFS implements variable block sizes for a variety of uses (commonly up to 128KB in size, but you can change this value).
这个模式要求被发布的值是有效不可变的——即值的状态在发布后不会更改。
This pattern requires that the value being published be effectively immutable — that its state not change after publication.
不可变属性的存取器将总是具有值引用,因而调用的任何一方都不需要防御性复制,这使得它们效率更高。
Accessors for immutable properties will always have value semantics and do not need the defensive copying on either side of the call, making them more efficient.
如果程序员需要一个可变的值,可以显式地指定。
If the programmer wants a mutable value, he should say so explicitly.
如果您想要改变一个不可变对象的话,您不会改变它,而是使用修改后的值来创建一个新的对象,并把您的引用指向它。
If you want to change an immutable object, you don't - you create a new object with the changed value and point your reference to it.
这些类型是不可变的,就是说整数对象一旦创建,其值便不可更改。
These types are immutable, which means that when an integer object is created, its value cannot be changed.
但这意味着当函数进行函数调用时,所有在可变寄存器中的值都有可能会被重写。
However, that means that when a function makes a function call, it should expect that all of the values in volatile registers will be overwritten.
然后构造函数打印出一条警告消息指明没有回调函数,因为列表是不可变的,所以我们没有机会用一个新的值来替代现有的回调函数列表。
The constructor then prints a warning message that there are no callbacks, since lists are immutable and there is no way to replace the callback list val with a new one.
这些值的分布状态的扩展称作可变性,表示观测值偏离中间值的程度。
The spread of the distribution, called its variability, indicates the degree to which observed values will vary from the mean.
在大多数语言中,“列表”是一个值(而不是容器),一个由简单值组成的不可变序列。
In most languages, a "list" is a value (rather than a container), an immutable ordered sequence of simpler values.
明确的讲,列表是一些便利的可变对象,他们甚至可以方便地保留多个值。
Lists, specifically, are handy mutable objects that can conveniently even hold multiple values.
本地变量空间用作该函数的通用存储空间,寄存器保存区用于保存函数所使用的非可变寄存器的值。
The local variable space is used as a general storage area for the function, and the register save area is used to save the values of non-volatile registers that the function USES.
为了允许除形参数组中定义的实参之外额外的实参(要么是必需的值,要么是可变长度的值),我将令这个调用返回被处理实参的实际数量。
To allow for added arguments beyond those defined in the parameter array (either required values or variable length sets of values), I'll have the call return the actual number of arguments processed.
“TraceSize”是指存储的长度可变的数据的最大值。
The "Trace size" refers to the maximum size of variable length data to be stored.
Scala鼓励你在任何可能的时候使用不可变的值。
Scala encourages you to use immutable values whenever possible.
应用推荐