Skip to content

Commit e9bbd2b

Browse files
committed
rfc, self_in_typedefs: add a drawback
1 parent 21187cd commit e9bbd2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

text/0000-self-in-typedefs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,9 @@ that it introduces new syntax whereby making the surface language more complex.
410410
However, the RFC may equally be said to simplify the surface language since
411411
it removes exceptional cases especially in the users mental model.
412412

413+
Using `Self` in a type definition makes it harder to search for all positions
414+
in which a pattern can appear in an AST.
415+
413416
# Rationale and alternatives
414417
[alternatives]: #alternatives
415418

0 commit comments

Comments
 (0)