[swift-users] [swift-evolution] for-else syntax

Jeremy Pereira jeremy.j.pereira at googlemail.com
Fri Feb 3 03:33:06 CST 2017


> On 2 Feb 2017, at 20:12, Erica Sadun via swift-users <swift-users at swift.org> wrote:
> 
> I've taken this over to Swift Users from Swift Evolution.
> 
> I think you'd want to handle the exceptional case first,

Although it is the way I would do it for an array, sometimes you don’t know that a sequence is empty until after you have iterated it.




More information about the swift-users mailing list