This all can be done with no mutable state in the client code.
所有这些都可以在客户端代码中没有可变状态的情况下完成。
Should loop counters be mutable?
循环计数器应该是可变的吗?
最大限度地减少可变状态。
Or a list of anything that could be mutable.
或者是包含其它有可变的结果的链表。
A mutable variable is declared with the keyword var.
一个可变的变量用关键字var来声明。
Tips:Your mutable motivation brings adaptability.
学习相:你的多变使你能够适应事物。
More often than not, they involve mutable object state.
而它们时常也会涉及易变的对象状态。
The on parameter is declared as a var, so it is mutable.
开关状态参数(on)被声明为var,所以是可变的。
Mutable state and locks are problematic for many reasons.
出于多种原因,可变状态和锁容易出问题。
If you want mutable fields, then use the keyword var.
如果你希望有可变的字段,那么使用var关键字。
See the "Mutable collections" sidebar for more about that.
请参阅侧边栏“可变集合”,了解更多这方面的信息。
For mutable objects, the answer is not always so clear.
对于可修改对象来说,答案并不总是如此清楚。
A variable stores the current state and is genuinely mutable.
变量存储了当前状态,并且真正是可变的。
We could have used a val with a mutable type, like ListBuffer.
我们也可以使用val和一个可变的类型,比如ListBuffer。
And this all can be done with no mutable state in the client code.
在客户代码中,这些都可以在不使用可变状态的情况下就能做到。
Some design problems are easier to solve with mutable objects.
有一些设计问题还是使用易变对象比较容易解决。
If the programmer wants a mutable value, he should say so explicitly.
如果程序员需要一个可变的值,可以显式地指定。
Scala also will not prevent you from writing code with mutable state.
Scala也不会阻止您在可变状态下编写代码。
One approach to this issue is to minimize mutable state in the database.
此问题的一种解决方法是要最大限度地减少数据库中的可变状态。
Because a list is mutable, it can't be used as the key in a dictionary.
因为list是易变的,所以它不能作为dictionary中的键。
Well now we're going to talk about some mutable types. Things you can change.
那我们接下来要去学习一些可变的类型,我们以一个可能你们大多数人。
When mutable state goes away, almost all concurrency problems go away with it.
可变状态消失时,差不多所有的并发性问题也随之消失。
They provide a mutable wrapper for otherwise immutable object references.
它们为那些用其他方式不可改变的对象引用提供了一个可改变的包装器。
VB allows both mutable and immutable anonymous types, with subtly different rules for each.
而VB却同时支持可变和不可变的匿名类型,对于这两种匿名类型,实现和使用的规则也略有不同。
My penance, constant in degree, is mutable in kind: one of its variants is tranquillity.
我的赎罪,程度不变,但种类一直在变:其中一种便是平静。
In embedded systems with no mutable storage, the initrd is the permanent root file system.
在没有存储设备的嵌入式系统中,initrd是永久的根文件系统。
Lists, specifically, are handy mutable objects that can conveniently even hold multiple values.
明确的讲,列表是一些便利的可变对象,他们甚至可以方便地保留多个值。
While mutable containers are very flexible, their dynamic nature can result in a performance hit.
虽然可变容器非常灵活,但它们的动态特性会对性能造成影响。
Pass-by-copy semantics for mutable serializable objects when running in a single address space.
在单一地址空间中运行时,易变的可序列化对象的Pass - by - copy语义。
Out of this, we'll see if we can assemble a more dynamic and mutable requirements gathering procedure.
除此之外,我们还会看看是否能够组织起一个更动态更可变的需求收集过程。
应用推荐