We'll see why when we discuss the Uniform Access Principle in the section called "when Accessor Methods and Fields Are Indistinguishable: the Uniform Access Principle" below.
我们会在“当方法和字段存取器无法区分时:唯一存取的原则”章节中讨论唯一存取原则时看到原因。
We’ll discuss this more in the section called “When Accessor Methods and Fields Are Indistinguishable: The Uniform Access Principle” in Chapter 6, Advanced Object-Oriented Programming In Scala.
我们会在《第6章 - Scala 高级面向对象编程》的“当方法和字段存取器无法区分时:唯一存取的原则”章节来更多的讨论这一点。
This principle can be extended to property access, but, for clarity, I shall leave the implementation of this to your imagination.
这个原则可被扩展到属性访问,但是为了清楚起见,我将让你来想象这个实现。
应用推荐