Skip to content

adjust download Scala 3 page #1291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions _includes/downloads-scala3.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,16 @@ <h3>Then, prepare your environment</h3>
<h3>Then, install Scala 3</h3>
<p>Open a terminal and run the following commands:</p>
<p><code>cs install scala3-compiler</code><span>to install the Scala 3 compiler.</span></p>
<p><code>cs install scala3-repl</code><span>to install the Scala 3 interactive read-eval-print loop.</span></p>
<p><code>cs install scala3</code><span>to install the Scala 3 code runner</span></p>
</div>
</div>
<div class="step">
<div class="number-step">3</div>
<div class="text-step">
<h3>Use Scala 3</h3>
<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>
<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>
<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>
<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>
<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>
</div>
</div>
</div>
Expand Down