Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我打开 Scala REPL,我注意到我可以创建类。
我的问题是:
REPL 不是通常意义上的解释器,因为它从不直接执行代码。你在 REPL 中输入的代码总是被编译的,类定义也是如此。