然而,tuple是不可变的。
创建和返回一个不可变的物理资源表示。
Create and return an immutable physical resource representation.
该类的实例是不可变的。
Ceylon鼓励尽可能使用不可变的属性。
Ceylon encourages the use of immutable attributes whenever possible.
关于他们有一点很关键的,就是他们都是不可变的。
The key thing about both of them is that they were immutable.
如文中所述,tuple类型是不可变的异构容器。
As discussed, the tuple type is an immutable heterogeneous container.
这篇文章演示了tuple,这是一个不可变的序列。
That article demonstrated the tuple, which is an immutable sequence.
Scala鼓励你在任何可能的时候使用不可变的值。
Scala encourages you to use immutable values whenever possible.
一种常用的列表类型是tuple,它是不可变的。
One common type of list is called a tuple, and as noted, it's immutable.
严格来说,在RUP 中您采用各阶段的顺序是不可变的。
Strictly speaking, the order in which you undertake phases in RUP is immutable.
那么为什么不在一开始就使得Point 成为不可变的呢?
这些类型是不可变的,就是说整数对象一旦创建,其值便不可更改。
These types are immutable, which means that when an integer object is created, its value cannot be changed.
此外,对于对象引用的数据成员,引用的对象必须是有效不可变的。
Further, for data members that are object references, the referred-to objects must be effectively immutable.
这个模式要求被发布的值是有效不可变的——即值的状态在发布后不会更改。
This pattern requires that the value being published be effectively immutable — that its state not change after publication.
作为不可变的序列,tuple和string对象在创建之后便无法修改。
As immutable sequences, both tuple and string objects can't be modified once they're created.
一个必须处理对象所有权问题的特殊情况是数组,因为数组不可以是不可变的。
One special case where we are forced to deal with the issue of object ownership is with arrays, as arrays cannot be immutable.
但它有本质的不同,因为原始节点没有改变(它也不能改变,因为它是不可变的)。
It is fundamentally different, because the original Node is not being changed (since it cannot be, as it is immutable.)
string是不可变的同构容器,这意味着它仅能存放字符且一旦建立将无法修改。
The string is an immutable homogeneous container, which means it can only hold characters and can't be modified once it has been created.
当作为构造函数参数时,这些可变或者不可变的变量会在一个对象被实例化的时候被初始化。
When used as constructor parameters, the mutable or immutable variables specified will be initialized when an object is instantiated.
由于clojure树是不可变的数据结构,因此任何操作都需要返回一个经过修改的新树。
Because Clojure trees are immutable data structures, any manipulation requires that we return a new, modified tree.
注意,函数只能作为不可变的序列访问这个列表—也就是说,尝试修改列表的内容会导致错误。
Note that the function can only access the list as an immutable sequence-that is, trying to modify the contents of the list results in an error.
要记得,默认情况下在Clojure 中所有事物都是不可变的(immutable)。
Remember that in Clojure everything is immutable by default.
一个是不可变的,当需要修改的时候它会创建一个新的副本,而另一个则允许直接在其上进行修改。
StringBuilder; one is immutable and changes to it cause the creation of a new copy, the other allows for in-place modification.
而VB却同时支持可变和不可变的匿名类型,对于这两种匿名类型,实现和使用的规则也略有不同。
VB allows both mutable and immutable anonymous types, with subtly different rules for each.
很多人现在都投身于函数式编程的世界,由于它们具有不可变的对象,以及与生俱来的线程安全属性。
Many people are betting on functional programming, with its emphasis on immutable objects and their inherently thread-safe properties.
如果一开始就使得Point 成为不可变的,那么这些与 Point 有关的问题早就迎刃而解了。
These problems with Point could have easily been solved if Point had been made immutable in the first place.
由于BigDecimal对象是不可变的,这些方法中的每一个都会产生新的BigDecimal对象。
Because BigDecimal objects are immutable, each of these methods produces a new BigDecimal object.
例如,tuple类型,尽管它是不可变的,灵活性较差,但在同一环境中使用时,它们通常比list类型快得多。
For example, the tuple type, while less flexible because it's immutable, is generally much faster than the list type when used in identical situations.
如果您要创建一个可变类m,那么您应该准备编写比m是不可变的情况下多得多的文档说明,以说明怎样处理m的引用。
If you are creating a mutable class m, you should be prepared to write a lot more documentation about the treatment of references to m than if m were immutable.
String是不可变的,但如果我们的工作需要字符串有很多变化,StringBuffer将是一个开销较低的选择。
String is immutable and if we are doing work that requires mutations, StringBuffer is a less costly alternative.
应用推荐