Skip to content

Update experimental overview page #14383

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 3 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
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
10 changes: 9 additions & 1 deletion docs/docs/reference/experimental/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: doc-page
title: "Experimental language features"
title: "Overview"
movedTo: https://docs.scala-lang.org/scala3/reference/experimental/overview.html
---

Expand All @@ -13,8 +13,16 @@ They are enabled by importing the feature or using the `-language` compiler flag
* `fewerBraces`: Enable support for using indentation for arguments.
* [`genericNumberLiterals`](./numeric-literals.md): Enable support for generic number literals.
* [`namedTypeArguments`](./named-typeargs.md): Enable support for named type arguments
* [`saferExceptions`](./canthrow.md): Enable support for checked exceptions.

### Experimental language imports

In general, experimental language features can be imported in an experimental scope (see [experimental definitions](../other-new-features/experimental-defs.md).
They can be imported at the top-level if all top-level definitions are @experimental.

### Experimental language features supported by special compiler options

Some experimental language features that are still in research and development can be enabled with special compiler options. These include

* [`-Yexplicit-nulls`](./explicit-nulls.md). Enable support for tracking null references in the type system.

4 changes: 1 addition & 3 deletions docs/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ sidebar:
- page: docs/reference/other-new-features/targetName.md
- page: docs/reference/other-new-features/control-syntax.md
- page: docs/reference/other-new-features/indentation.md
- page: docs/reference/other-new-features/explicit-nulls.md
- page: docs/reference/other-new-features/safe-initialization.md
- page: docs/reference/other-new-features/type-test.md
- page: docs/reference/other-new-features/experimental-defs.md
Expand Down Expand Up @@ -114,10 +113,9 @@ sidebar:
- page: docs/reference/experimental/overview.md
- page: docs/reference/experimental/canthrow.md
- page: docs/reference/experimental/erased-defs.md
- page: docs/reference/experimental/erased-defs-spec.md
- page: docs/reference/experimental/named-typeargs.md
- page: docs/reference/experimental/named-typeargs-spec.md
- page: docs/reference/experimental/numeric-literals.md
- page: docs/reference/experimental/explicit-nulls.md
- page: docs/reference/syntax.md
- title: Language Versions
index: docs/reference/language-versions/language-versions.md
Expand Down