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
<p>If you are a Mac user, you can install Dotty with <ahref="https://brew.sh/">brew</a>:</p>
60
+
<h1id="getting-started">Try Scala 3</h1>
61
+
<p>There are multiple ways of <ahref="https://docs.scala-lang.org/scala3/getting-started.html">getting started</a> with Scala 3.</p>
62
+
<ol>
63
+
<li>You can try Scala 3 in your browser with <ahref="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</li>
64
+
<li>If you already have sbt installed, you can <ahref="#getting-started-with-a-project">create a Scala 3 project</a> and sbt will take care of the rest.</li>
65
+
<li>You can install all necessary dependencies with <ahref="https://get-coursier.io/">coursier</a> by running <code>cs setup</code>. You can also run <code>cs install scala3-compiler</code> or <code>cs install scala3-repl</code> to install command-line commands for the compiler and repl, correspondingly.</li>
66
+
<li>You can <ahref="#install">manually install Scala 3</a> on your computer.</li>
67
+
</ol>
68
+
69
+
<h1id="install">Install Scala 3</h1>
70
+
<p>If you are a <strong>Mac</strong> user, you can install Scala 3 with <ahref="https://brew.sh/">brew</a>:</p>
<p>If you are a Linux or Windows user, download the <ahref="https://github.com/lampepfl/dotty/releases">latest release</a>. Optionally add path of the folder <code>bin/</code> to the system environment variable <code>PATH</code>. </p>
73
+
<p>
74
+
If you are a <strong>Linux</strong> or <strong>Windows</strong> user, as a prerequisite you need a JDK 8 or later properly installed on your system. The environment variable <code>JAVA_HOME</code> should point to your Java installation.<br/>
75
+
For <strong>Windows</strong> users, we recommend using <ahref="https://docs.microsoft.com/en-us/windows/wsl/install-win10">the Windows subsystem for linux</a> or some other bash shell like <ahref="https://gitforwindows.org/">git bash</a>.<br/>
76
+
Then download the <ahref="https://github.com/lampepfl/dotty/releases">latest release</a>. Optionally add the path of the folder <code>bin/</code> to the system environment variable <code>PATH</code>.
77
+
</p>
60
78
61
79
<p>Now you can compile Scala source code:</p>
62
80
<pre><code>scalac hello.scala</code></pre>
63
81
64
82
<p>To start the REPL, run: <code>scala</code>.</p>
65
83
66
-
<p>Or, you can try Dotty in your browser with <ahref="https://scastie.scala-lang.org/?target=dotty">Scastie</a>.</p>
67
-
68
-
<h1id="getting-started-with-a-project">Create a Dotty Project</h1>
69
-
<p>The fastest way to create a new project in Dotty is using <ahref="http://www.scala-sbt.org/">sbt (1.1.4+)</a>.</p>
84
+
<h1id="getting-started-with-a-project">Create a Scala 3 Project</h1>
85
+
<p>The fastest way to create a new project in Scala 3 is using <ahref="http://www.scala-sbt.org/">sbt (1.1.4+)</a>.</p>
70
86
71
-
<p>Create a Dotty project:</p>
87
+
<p>Create a Scala 3 project:</p>
72
88
<pre><code>sbt new <ahref="https://github.com/lampepfl/dotty.g8">lampepfl/dotty.g8</a></code></pre>
73
89
74
-
<p>Or a Dotty project that cross compiles with Scala 2:</p>
90
+
<p>Or a Scala 3 project that cross compiles with Scala 2:</p>
75
91
<pre><code>sbt new <ahref="https://github.com/lampepfl/dotty-cross.g8">lampepfl/dotty-cross.g8</a></code></pre>
76
92
77
-
<p>For documentation see the <ahref="https://github.com/lampepfl/dotty-example-project">Dotty Example Project</a>.</p>
93
+
<p>For documentation see the <ahref="https://github.com/lampepfl/dotty-example-project">Scala 3 Example Project</a>.</p>
94
+
95
+
<h1id="documentation">Learn more about Scala 3</h1>
96
+
<p>You can find much more information about Scala 3 in ...</p>
97
+
<ul>
98
+
<li>... the <ahref="https://docs.scala-lang.org/scala3/">Scala 3 documentation</a>,</li>
99
+
<li>... the <ahref="https://docs.scala-lang.org/scala3/scala3-book">Scala 3 book</a>,</li>
100
+
<li>... the <ahref="docs/index.html">Scala 3 reference docs</a>,</li>
101
+
<li>... the <ahref="https://docs.scala-lang.org/scala3/guides.html">Scala 3 guides</a>.</li>
0 commit comments