[swift-evolution] TreeLiteralConvertible

Milos Rankovic milos at milos-and-slavica.net
Thu Apr 14 13:08:30 CDT 2016


Thanks for the comment, Vladimir. 

> On 14 Apr 2016, at 18:14, Vladimir.S <svabox at gmail.com> wrote:
> 
> Well, actually we can compile :
> 
> var zz : [Any] = [[Int](), 1,  [2, 3], [[4, 5], [6, 7], [8, 9]]]
> 
Sure. I just wasn’t sure it was worth mentioning (it was a long post anyway): annotating the variable with `[Any]` is not preserving the leaf type nor does it do justice to the overall structure.

milos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160414/798631c1/attachment.html>


More information about the swift-evolution mailing list