【发布时间】:2013-09-26 06:49:26
【问题描述】:
Scala in Action一书中说,在 Scala REPL 中使用 :import 命令我们会看到:
scala> :imports
1) import java.lang._ (153 types, 158 terms)
2) import scala._ (798 types, 806 terms)
3) import scala.Predef._ (16 types, 167 terms, 96 are implicit)
根据这本书,上面的那些包都是自动导入的。但在我的 REPL (Scala 2.10.2) 中它只返回一行:
scala> :imports
1) import scala.Predef._ (162 terms, 78 are implicit)
有什么问题吗?
【问题讨论】:
-
书中使用了哪个版本的Scala?
标签: scala