Skip to content

Commit c136712

Browse files
oderskyaesteve
andauthored
Update docs/docs/reference/contextual/motivation-new.md
Co-Authored-By: Arnaud Esteve <[email protected]>
1 parent 2614272 commit c136712

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/docs/reference/contextual/motivation-new.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following pages introduce a redesign of contextual abstractions in Scala. Th
4949

5050
1. [Given Instances](./givens.md) are a new way to define basic terms that can be synthesized. They replace implicit definitions. The core principle of the proposal is that, rather than mixing the `implicit` modifier with a large number of features, we have a single way to define terms that can be synthesized for types.
5151

52-
2. [With Clauses](./context-parameters.md) define are a new syntax for implicit _parameters_ and their _arguments_. It unambiguously aligns parameters and arguments, solving a number of language warts. It also allows us to have several with clauses in a definition.
52+
2. [With Clauses](./context-parameters.md) are a new syntax for implicit _parameters_ and their _arguments_. It unambiguously aligns parameters and arguments, solving a number of language warts. It also allows us to have several with clauses in a definition.
5353

5454
3. ["Given" Imports](./given-imports.md) are a new class of import selectors that specifically import
5555
givens and nothing else.
@@ -78,4 +78,3 @@ Could we achieve the same goals by tweaking existing implicits? After having tri
7878
- Third, even if we would somehow succeed with migration, we still have the problem
7979
how to teach this. We cannot make existing tutorials go away. Almost all existing tutorials start with implicit conversions, which will go away; they use normal imports, which will go away, and they explain calls to methods with implicit parameters by expanding them to plain applications, which will also go away. This means that we'd have
8080
to add modifications and qualifications to all existing literature and courseware, likely causing more confusion with beginners instead of less. By contrast, with a new syntax there is a clear criterion: Any book or courseware that mentions `implicit` is outdated and should be updated.
81-

0 commit comments

Comments
 (0)