I completely understand how Swift experts may say "you're holding it wrong" but I think there is a much wider and more important point here that this doesn't look wrong at all and hence any APIs built like this will be very hard for developers to reason about.
I am still struggling to internalise this nuance with existentials, and I've developed in many languages (C, C++, Object Pascal, ObjC, JS, 68000 ASM) for over 30 years!
Environment
Xcode 9.2
Apple Swift version 4.1 (swiftlang-902.0.34 clang-902.0.30)
Additional Detail from JIRA
md5: 10ba50906ce8e750485046f8da2fb431
duplicates:
Issue Description:
Example:
See discussion at: https://forums.swift.org/t/confused-by-generic-behaviour-not-clear-if-it-is-a-bug/9823
The text was updated successfully, but these errors were encountered: