Skip to content

Commit b4cd9ba

Browse files
committed
Rename some remaining occurrences of is to forms
1 parent 59ab35e commit b4cd9ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/_docs/reference/experimental/typeclasses.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ and not to:
123123
One possible objection to the `Self` based design is that it does not cover "multi-parameter" type classes. But neither do context bounds! "Multi-parameter" type classes in Scala are simply givens that can be synthesized with the standard mechanisms. Type classes in the strict sense abstract only over a single type, namely the implementation type of a trait.
124124

125125

126-
## Auxiliary Type Alias `is`
126+
## Auxiliary Type Alias `forms`
127127

128-
We introduce a standard type alias `is` in the Scala package or in `Predef`, defined like this:
128+
We introduce a standard type alias `forms` in the Scala package or in `Predef`, defined like this:
129129

130130
```scala
131131
infix type is[A <: AnyKind, B <: {type Self <: AnyKind}] = B { type Self = A }
@@ -656,7 +656,7 @@ I have proposed some tweaks to Scala 3, which would greatly increase its usabili
656656
1. Allow context bounds to be named with `as`. Use the bound parameter name as a default name for the generated context bound evidence.
657657
1. Add a new `{...}` syntax for multiple context bounds.
658658
1. Make context bounds also available for type members, which expand into a new form of deferred given. Phase out the previous abstract givens in favor of the new form.
659-
1. Add a predefined type alias `is`.
659+
1. Add a predefined type alias `forms`.
660660
1. Introduce a new cleaner syntax of given clauses.
661661

662662
It's interesting that givens, which are a very general concept in Scala, were "almost there" when it comes to full support of concepts and generic programming. We only needed to add a few usability tweaks to context bounds,

0 commit comments

Comments
 (0)