[swift-evolution] Removing enumerated?

Dave Abrahams dabrahams at apple.com
Sat Feb 4 16:43:01 CST 2017


on Fri Feb 03 2017, Ben Cohen <swift-evolution at swift.org> wrote:

>> On Feb 3, 2017, at 3:27 PM, Dave Abrahams via swift-evolution
>> <swift-evolution at swift.org> wrote:
>> 
>> I don't always make zip a method, but when I do, its argument label is
>> “to:”
>
> Hmm, that doesn’t sound very natural to me.
>
> Then again the problem with “zip(with:)" is it’s already kind of a
> term of art for a version that takes a function to combine the two
> values.
>
> There’s also the question of how to spell a non-truncating versions
> (returning optionals or taking a pad value).

Is there a use-case for such a zip?

-- 
-Dave



More information about the swift-evolution mailing list