Просмотр исходного кода

Add link for coherence appendix to Swift forums (#4241)

Co-authored-by: Josh L <josh11b@users.noreply.github.com>
Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
josh11b 1 год назад
Родитель
Сommit
5d73743971
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      docs/design/generics/appendix-coherence.md

+ 6 - 0
docs/design/generics/appendix-coherence.md

@@ -235,3 +235,9 @@ either:
     like
     like
     [dynamic implementation binding](#rejected-variation-dynamic-implementation-binding)
     [dynamic implementation binding](#rejected-variation-dynamic-implementation-binding)
     (though perhaps with a monomorphization cost instead of a runtime cost).
     (though perhaps with a monomorphization cost instead of a runtime cost).
+
+In addition, this can create unsoundness when combined with dynamic downcasts
+and a more complex, less predictable implementation model as
+[discussed in Swift](https://forums.swift.org/t/retroactive-conformances-dynamic-downcast-type-unsoundness/73890).
+This approach would be particularly complex in Carbon due to supporting
+[impl specialization](terminology.md#specialization).