Files
So far, everything we've looked at in the REPL involves typing (or pasting) code. When wanting to use the REPL to experiment with more complicated code, there's a better, time-honoured way: files. There are several ways you can use file-based code in the REPL:
- evaluation
- compilation
- including
- loading
Each of these is covered in more detail in the following sub-sections.