- Scala is an object-functional programming and scripting language for general software applications. Scala has full support for functional programming (including currying, pattern matching, algebraic data types, lazy evaluation, tail recursion, immutability, etc.) and a very strong static type system. This allows programs written in Scala to be very concise and thus smaller in size than most general purpose programming languages. Many of Scala's design decisions were inspired by criticism over the shortcomings of Java.
对于 scala3 (也被称作 dotty), 您可以从 AUR 中安装 AUR 或者 AUR。 请注意 scala3 不兼容 scala 2.13 及更早版本.
多数构建工具可以在官方 community 仓库中安装:
像 Python 等语言一样, 您可以在解释器中运行交互程序。
$ scala Welcome to Scala version 2.*.* (OpenJDK Server VM, Java 1.*.*). Type in expressions to have them evaluated. Type :help for more information. scala>
$ scalac HelloWorld.scala $ scala HelloWorld
许多不同的 IDE 例如 Eclipse 和 Netbeans 都提供 scala 支持。 AUR package for example is available in the AUR. But you can also download an IDE that is optimized for Scala and also based on Eclipse directly from the official Scala Website.