[swift-evolution] [Draft] Change IteratorType post-nil guarantee
patrickpijnappel at gmail.com
Fri Mar 18 23:51:19 CDT 2016
I wasn't counting Zip as that tracks it for different reasons (as you point
out). The remaining two are in UTF-8/UTF-16 decoding (the done flag is
inside the lookahead flags):
On Sat, Mar 19, 2016 at 2:16 PM, Brent Royal-Gordon <brent at architechies.com>
> > Current – post-nil unspecified
> > – Responsibility of the caller, needs to be aware of the API contract
> and needs to track a bool and branch when relying on post-nil.
> > – Standard library currently has 3 occurrences of this being necessary.
> I got curious and decided to try to locate these. I found two:
> (Interestingly the Zip one is defensive programming: ZipGenerator.next()
> is ensuring it doesn't incorrectly call its child generators' next()
> methods even if is itself called too many times.)
> What was the third? I must have missed it.
> Brent Royal-Gordon
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution