Work in Progress

We are still in the process of writing the documentation for Scala 3. You can help us to improve the documentation.

Are you searching for the Scala 2 documentation?

Scala 3 Language Reference

Dropped: Symbol Literals

Language

Symbol literals are no longer supported.

The scala.Symbol class still exists, so a literal translation of the symbol literal 'xyz is Symbol("xyz"). However, it is recommended to use a plain string literal "xyz" instead. (The Symbol class will be deprecated and removed in the future).

Contributors to this page: