If I open the Scala REPL, I noticed I can create classes.
My questions are:
- What does the REPL do when there is a class definition?
- Does it compile the class?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.