[swift-evolution] Should all GeneratorTypes also be SequenceTypes?
Dave Abrahams
dabrahams at apple.com
Mon Mar 21 17:40:21 CDT 2016
on Mon Mar 14 2016, Dmitri Gribenko <swift-evolution at swift.org> wrote:
> On Mon, Mar 14, 2016 at 4:42 PM, Haravikk via swift-evolution
> <swift-evolution at swift.org> wrote:
>> There are quite a lot of generator implementations that also
>> implement SequenceType (since it’s as simple as returning
>> self). Indeed, the AnyGenerator type conforms to SequenceType,
>> allowing any generator to be wrapped as a sequence, though I imagine
>> this comes with some overhead. So it got me thinking, why doesn’t
>> GeneratorType just require conformance to SequenceType?
>
> Because of compiler bugs.
Ahem: not-yet-implemented features :-).
Dave
More information about the swift-evolution
mailing list