[swift-evolution] higher kinded types vs Python's syntactic sugars
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution