在 scala (2.10.3) REPL 的最新版本中,我可以键入 exit
退出 REPL。但是,在 Scala 2.11.0中,这种方法不起作用。
$ scala
Welcome to Scala version 2.11.0 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_51).
Type in expressions to have them evaluated.
Type :help for more information.
scala> exit
<console>:8: error: not found: value exit
exit
^
scala>