这两条简单的规则足以将模型中省略的所有信息加上。
These two simple rules suffice to add all the information that's missing from the model.
Scala对象另一个便利的构造手段就是apply方法,其规则是拥有apply方法的任何对象在调用时可以省略掉。apply 。
Another handy construct for Scala objects is the apply method. The rules state that every object that has an apply method can be called with the.apply omitted.
为了习惯这种用法,该文档中所有示例中的分号都将依据以上规则省略。
To reflect idiomatic use, code examples in this document elide semicolons using these rules.
应用推荐