[swift-evolution] higher kinded types vs Python's syntactic sugars

T.J. Usiyan griotspeak at gmail.com
Thu Dec 17 18:19:22 CST 2015

With a Cartesian Product type [like this](
https://github.com/griotspeak/CartesianProduct), the for-in-where syntax
actually gets us to list comprehensions. I'll admit that I might not have
implemented the best Cartesian Product type possible, but it should
illustrate that we have what we need.

`for case … in cartProd(cartProd(seq1, seq2), seq3) // An operator for
cartProd would make it more pleasing to read.`

On Thu, Dec 17, 2015 at 6:29 PM, Amir Michail via swift-evolution <
swift-evolution at swift.org> wrote:

> How is it possible that higher kinded types are being discussed seriously
> while Python’s syntactic sugars (e.g., comprehensions) have been dismissed
> as too confusing?
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151217/9be30893/attachment.html>

More information about the swift-evolution mailing list