[swift-evolution] Disappearing AnyGenerator/AnySequence/AnyCollection wrapper types
david at hartbit.com
Mon Dec 14 16:47:30 CST 2015
I’ve had a few discussions about that with Joe and Rob Rix, where I understood less than I’d like to admit :) Joe recently said that the subject of type-erasure is probably not currently planned for Swift 3, but saying that:
@rob_rix @dhartbit Fixing cyclic assoc type references will give us the runtime support for those existentials, at least.
If that makes sense to you.
> On 14 Dec 2015, at 23:24, Erica Sadun via swift-evolution <swift-evolution at swift.org> wrote:
>> Joe wrote: "What changes would be necessary to the standard library to make the most of this feature? Some particular problems we'd like to solve are to eliminate the need for the AnyGenerator/AnySequence/AnyCollection wrapper types, and to provide a solution for heterogeneous equality, so that protocols can inherit Equatable and Hashable without forfeiting the ability to be used dynamically. See Brent Simmons' Swift diary posts at http://inessential.com/swiftdiary <http://inessential.com/swiftdiary> for an example of why the latter is important."
> Any advice for what could be done now in preparation for any changes that might happen and an estimate of when these types might be on the chopping block? Not 3.0, right? But 4.0? What are good ways to work around this now using current (and presumably stable) constructs?
> Thanks, -- E
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution