Nu am putut găsi această intrare. Se afișează rezultate aproximative. Verificați ortografia sau propuneți adăugarea acestui termen în dicționar.
可变状态
可变的状态
Scala also will not prevent you from writing code with mutable state.
Scala 也不会阻止您在可变状态下编写代码。
When mutable state goes away, almost all concurrency problems go away with it.
可变状态消失时,差不多所有的并发性问题也随之消失。
advantage of this division, responsibilities clear, mutable state concentration, each field is non-locking thread-safe, guaranteed under the big concurrency, does not reduce the activity of the system.
In general, functional languages, particularly those considered "pure" functional languages (and thus permitting no side effects, such as mutable state) have only supported the val concept; but Scala, in its mandate to be attractive to both functional and imperative/object programmers, offers both.
通常,函数语言,特别是被认为是 "纯" 函数语言(不允许带有副作用,比如可变状态)的那些函数语言,只支持 val 概念;但是,因为 Scala 要同时吸引函数编程人员和命令/对象编程人员,所以这二种结构它都提供。
Performance bottlenecks - caused by incorrect API usage, redundant synchronization, and unnecessary use of shared mutable state.
性能瓶颈 - 由于不正确的API使用,多余的同步,以及使用不必要的共享可变状态引起。
Using either while or mutable state sacrifices a key aspect of the Scala language, however, which is the encouragement to write code that parallelizes well.
但是,使用 while 或可变状态意味着牺牲 Scala 语言的另一个关键方面,即鼓励编写具有良好并行性的代码。
In short, I've refactored the while loop's mutable state entirely into the parameters passed to the various invocations of sort() - which many Scala aficionados would say is the proper way to write Scala code.
When heated, it becomes vaporous steam - comparable to the mutable state in astrology.
加热后,水变成了水蒸气 - 这可以比作占星学中的易变星座。
Erlang doesn't have mutable state, and this is a dramatically different decision then the majority of popular languages used by nix professionals.
Erlang没有可变的状态,这是它与 *nix专业人员使用的大多数流行语言的重要差异。
This is particularly true in more or less purely object-oriented languages (such as the Java language) because the primary abstractions are hierarchy and mutable state.
对于纯面向对象语言(例如 Java 语言)来说,这一点尤为明显,因为主要的抽象就是分层和易变状态。
Prefer immutable data objects over mutable state - In a highly concurrent environment, mutable state can be dangerous.
与可变的状态相比,我们更喜欢不变的数据对象 - 在一个高并发的环境中,可变状态是非常危险的。
The reason is quite simple: in addition to val making it easier to reason about a program's thread-safety, it is an underlying theme in Scala that developers do not need mutable state nearly as often as we think we do.
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.