You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _includes/downloads-scala3.html
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,15 +61,16 @@ <h3>Then, prepare your environment</h3>
61
61
<h3>Then, install Scala 3</h3>
62
62
<p>Open a terminal and run the following commands:</p>
63
63
<p><code>cs install scala3-compiler</code><span>to install the Scala 3 compiler.</span></p>
64
-
<p><code>cs install scala3-repl</code><span>to install the Scala 3 interactive read-eval-print loop.</span></p>
64
+
<p><code>cs install scala3</code><span>to install the Scala 3 code runner</span></p>
65
65
</div>
66
66
</div>
67
67
<divclass="step">
68
68
<divclass="number-step">3</div>
69
69
<divclass="text-step">
70
70
<h3>Use Scala 3</h3>
71
-
<p>The command <code>scala3-repl</code> will start a Scala console that you can use to interactively evaluate Scala programs. Within this console, run the command <code>:load test.scala</code> to load and execute the file <code>test.scala</code>.</p>
72
-
<p>To use the Scala 3 compiler to compile a file <code>test.scala</code> simply run<code>scala3-compiler test.scala</code> in your terminal.</p>
71
+
<p>The command <code>scala3</code> will start the Scala console, it is an interactive read-eval-print-loop that you can use to directly enter and run Scala expressions.</p>
72
+
<p>To use the Scala 3 compiler to compile a file <code>test.scala</code>, run<code>scala3-compiler test.scala</code> in your terminal.</p>
73
+
<p>The command <code>scala3 hello Scala</code> will run the main method of a class called <code>hello</code>, passing the argument <code>"Scala"</code>.</p>
0 commit comments