diff --git a/_includes/downloads-scala3.html b/_includes/downloads-scala3.html index c7b633e86..37afacdc3 100644 --- a/_includes/downloads-scala3.html +++ b/_includes/downloads-scala3.html @@ -61,15 +61,16 @@
Open a terminal and run the following commands:
cs install scala3-compiler
to install the Scala 3 compiler.
cs install scala3-repl
to install the Scala 3 interactive read-eval-print loop.
cs install scala3
to install the Scala 3 code runner
The command scala3-repl
will start a Scala console that you can use to interactively evaluate Scala programs. Within this console, run the command :load test.scala
to load and execute the file test.scala
.
To use the Scala 3 compiler to compile a file test.scala
simply runscala3-compiler test.scala
in your terminal.
The command scala3
will start the Scala console, it is an interactive read-eval-print-loop that you can use to directly enter and run Scala expressions.
To use the Scala 3 compiler to compile a file test.scala
, runscala3-compiler test.scala
in your terminal.
The command scala3 hello Scala
will run the main method of a class called hello
, passing the argument "Scala"
.