Skip to content

Mark website content as outdated. #13094

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
Jul 23, 2021
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
5 changes: 5 additions & 0 deletions docs/_layouts/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
layout: base
---
<div id="content-wrapper">
{% if page.movedTo %}
<aside class="warning">
The content of this page is outdated. Click <a href="{{ page.movedTo }}">here</a> to find the up to date version of this page.
</aside>
{% endif %}
{{ content }}
</div>
<script>
Expand Down
4 changes: 2 additions & 2 deletions docs/css/dottydoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ aside {
}

aside.warning {
border-left: 3px solid #d62c2c;
background-color: #ffe4e4;
border-left: 3px solid var(--red500);
background-color: var(--aside-warning-bg);
}

aside.notice {
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/compiler-plugins.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Changes in Compiler Plugins"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/compiler-plugins.html
---

Compiler plugins are supported by Dotty (and Scala 3) since 0.9. There are two notable changes
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/eta-expansion-spec.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Automatic Eta Expansion - More Details"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/eta-expansion-spec.html
---

## Motivation
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/eta-expansion.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Automatic Eta Expansion"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/eta-expansion.html
---

The conversion of _methods_ into _functions_ has been improved and happens automatically for methods with one or more parameters.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Implicit Conversions - More Details"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-conversions-spec.html
---

## Implementation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Implicit Conversions"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-conversions.html
---

An _implicit conversion_, also called _view_, is a conversion that
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Changes in Implicit Resolution"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-resolution.html
---
This section describes changes to the implicit resolution that apply both to the new `given`s and to the old-style `implicit`s in Scala 3.
Implicit resolution uses a new algorithm which caches implicit results
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/imports.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Imports"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/imports.html
---

The syntax of wildcard and renaming imports (and exports) has changed.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Escapes in interpolations"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/interpolation-escapes.html
---

In Scala 2 there is no straightforward way to represent a single quote character `"` in a single quoted interpolation. A `\` character can't be used for that because interpolators themselves decide how to handle escaping, so the parser doesn't know whether the `"` should be escaped or used as a terminator.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/lazy-vals-init.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: Lazy Vals initialization
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/lazy-vals-init.html
---

Scala 3 implements [Version 6](https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html#version-6---no-synchronization-on-this-and-concurrent-initialization-of-fields)
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/main-functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Main Methods"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/main-functions.html
---

Scala 3 offers a new way to define programs that can be invoked from the command line:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/match-syntax.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Match Expressions"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/match-syntax.html
---

The syntactical precedence of match expressions has been changed.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/numeric-literals.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Numeric Literals"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/numeric-literals.html
---

**Note**: This feature is not yet part of the Scala 3 language definition. It can be made available by a language import:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/operators.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Rules for Operators"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/operators.html
---

The rules for infix operators have changed in some parts:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Changes in Overload Resolution"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/overload-resolution.html
---

Overload resolution in Scala 3 improves on Scala 2 in two ways.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/pattern-bindings.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Pattern Bindings"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-bindings.html
---

In Scala 2, pattern bindings in `val` definitions and `for` expressions are
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/pattern-matching.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Option-less pattern matching"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-matching.html
---

The implementation of pattern matching in Scala 3 was greatly simplified compared to Scala 2. From a user perspective, this means that Scala 3 generated patterns are a *lot* easier to debug, as variables all show up in debug modes and positions are correctly preserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Programmatic Structural Types - More Details"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/structural-types-spec.html
---

## Syntax
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/structural-types.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Programmatic Structural Types"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/structural-types.html
---

## Motivation
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/type-checking.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Changes in Type Checking"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/type-checking.html
---

*** **TO BE FILLED IN** ***
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/type-inference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Changes in Type Inference"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/type-inference.html
---

For more information, see the two presentations
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/vararg-splices.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Vararg Splices"
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/vararg-splices.html
---

The syntax of vararg splices in patterns and function arguments has changed. The new syntax uses a postfix `*`, analogously to how a vararg parameter is declared.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/changed-features/wildcards.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: Wildcard Arguments in Types
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/wildcards.html
---

The syntax of wildcard arguments in types has changed from `_` to `?`. Example:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "By-Name Context Parameters"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/by-name-context-parameters.html
---

Context parameters can be declared by-name to avoid a divergent inferred expansion. Example:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/context-bounds.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Context Bounds"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/context-bounds.html
---

A context bound is a shorthand for expressing the common pattern of a context parameter that depends on a type parameter. Using a context bound, the `maximum` function of the last section can be written like this:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/context-functions-spec.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Context Functions - More Details"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/context-functions-spec.html
---

## Syntax
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/context-functions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Context Functions"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/context-functions.html
---

_Context functions_ are functions with (only) context parameters.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/conversions.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Implicit Conversions"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/conversions.html
---

Implicit conversions are defined by given instances of the `scala.Conversion` class.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/derivation-macro.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "How to write a type class `derived` method using macros"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/derivation-macro.html
---

In the main [derivation](./derivation.md) documentation page, we explained the
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/derivation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Type Class Derivation"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/derivation.html
---

Type class derivation is a way to automatically generate given instances for type classes which satisfy some simple
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/extension-methods.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Extension Methods"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/extension-methods.html
---

Extension methods allow one to add methods to a type after the type is defined. Example:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/given-imports.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Importing Givens"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/given-imports.html
---

A special form of import wildcard selector is used to import given instances. Example:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/givens.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Given Instances"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/givens.html
---

Given instances (or, simply, "givens") define "canonical" values of certain types
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/motivation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Overview"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual.html
---

### Critique of the Status Quo
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/multiversal-equality.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Multiversal Equality"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/multiversal-equality.html
---

Previously, Scala had universal equality: Two values of any types
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/relationship-implicits.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Relationship with Scala 2 Implicits"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/relationship-implicits.html
---

Many, but not all, of the new contextual abstraction features in Scala 3 can be mapped to Scala 2's implicits. This page gives a rundown on the relationships between new and old features.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Right-Associative Extension Methods: Details"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/right-associative-extension-methods.html
---

The most general form of leading parameters of an extension method is as follows:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/type-classes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Implementing Type classes"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/type-classes.html
---

A _type class_ is an abstract, parameterized type that lets you add new behavior to any closed data type without using sub-typing. This can be useful in multiple use-cases, for example:
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/contextual/using-clauses.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Using Clauses"
movedTo: https://docs.scala-lang.org/scala3/reference/contextual/using-clauses.html
---

Functional programming tends to express most dependencies as simple function parameterization.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/auto-apply.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Auto-Application"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/auto-apply.html
---

Previously an empty argument list `()` was implicitly inserted when
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Class Shadowing - More Details"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/class-shadowing-spec.html
---

Spec diff: in section [5.1.4 Overriding](https://www.scala-lang.org/files/archive/spec/2.13/05-classes-and-objects.html#Overriding), add *M' must not be a class*.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/class-shadowing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Class Shadowing"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/class-shadowing.html
---

Scala 2 so far allowed patterns like this:
Expand Down
3 changes: 2 additions & 1 deletion docs/docs/reference/dropped-features/delayed-init.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Delayedinit"
title: "Dropped: DelayedInit"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/delayed-init.html
---

The special handling of the `DelayedInit` trait is no longer supported.
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/do-while.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Do-While"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/do-while.html
---

The syntax construct
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/early-initializers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Early Initializers"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/early-initializers.html
---

Early initializers of the form
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/existential-types.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Existential Types"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/existential-types.html
---

Existential types using `forSome` (as in
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/limit22.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Limit 22"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/limit22.html
---

The limits of 22 for the maximal number of parameters of function types and the
Expand Down
1 change: 1 addition & 0 deletions docs/docs/reference/dropped-features/macros.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: doc-page
title: "Dropped: Scala 2 Macros"
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/macros.html
---

The previous, experimental macro system has been dropped.
Expand Down
Loading