Macarse
Macarse

Reputation: 93173

How does the scala REPL work when defining a class?

If I open the Scala REPL, I noticed I can create classes.

My questions are:

Upvotes: 1

Views: 573

Answers (1)

Kim Stebel
Kim Stebel

Reputation: 42045

The REPL is not an interpreter in the usual sense, as it never executes code directly. Code that you enter in the REPL is always compiled and so are class definitions.

Upvotes: 4

Related Questions