The language is dynamically typed. Variables do not need to be declared before being used.
动态类型语言,使用变量之前无需预先声明。
For item types which do not require audit history, the platform allows them to be declared as simple items, and the repository will retain only the latest state of the item.
对于不需要审核历史记录的项类型,该平台允许将它们声明为simple项,并且存储库将仅保留该项的最新状态。
Scala also allows types to be declared in classes, as we saw in the section called "Abstract types And Parameterized types" in Chapter 2, type Less, Do More.
Scala也允许在类中声明类型,正如我们在《第2章-打更少的字,做更多的事》中的“抽象类型和参数化类型”章节中所见。
应用推荐