Scala Reactive Programming
上QQ阅读APP看书,第一时间看更新

Scala REPL

The Scala programming language has a command-line shell known as REPL to execute simple Scala expressions, programs, and more to experiment and learn Scala Basics quickly without using any IDEs such as Eclipse and IntelliJ IDE.

REPL stands for Read-Eval-Print Loop. In Scala, REPL is an interactive tool and acts a Scala interpreter.

Once we install Scala and set up the environment variables such as PATH, we can access REPL, as shown in the following screenshot:

Here, we can execute any Scala expression. When I started learning Scala basics a few years ago, initially I was using REPL to experiment with my programs. It's very easy to use.

In this book, we will use Scala REPL in a couple of places without using the IDE.

For more information about Scala REPL, go through the documentation at https://docs.scala-lang.org/overviews/repl/overview.html.