Skip to content

Commit 0272c7c

Browse files
committed
Add back info on typelevel combinator calculus
1 parent af54229 commit 0272c7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/docs/reference/dropped/type-projection.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ Dotty disallows this if `T` is an abstract type (class types and type aliases
1010
are fine). This change was made because unrestricted type projection
1111
is [unsound](https://github.com/lampepfl/dotty/issues/1050).
1212

13+
This restriction rules out the [type-level encoding of a combinator
14+
calculus](https://michid.wordpress.com/2010/01/29/scala-type-level-encoding-of-the-ski-calculus/).
15+
1316
To rewrite code using type projections on abstract types, consider using
1417
path-dependent types or implicit parameters.

0 commit comments

Comments
 (0)