<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Feb 9, 2016, at 11:33 AM, <a href="mailto:davesweeris@mac.com" class="">davesweeris@mac.com</a> wrote:<br class=""><div><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">This would solve the fixed size array use-case, be much easier to implement, and not have surprising performance issues promoting things to Any. &nbsp;It is also consistent with the fact that we don’t infer the type of [Int(), Float()] to [Any].</div><div class=""><br class=""></div><div class="">-Chris</div></div></div></blockquote></div><div class=""><br class=""></div><div class="">(Sorry to go so far back… I started replying to this on probably the 29th and somehow forgot about it.)</div><br class=""><div class=""><div class=""><div class="">Out of curiosity, why would the subscript of non-homogeneous tuple have to return an "Any”? If we declare this:</div><div class=""><span style="color: rgb(211, 54, 130); font-family: 'Fira Mono';" class="">let</span><font color="#93a1a1" face="Fira Mono" class="">&nbsp;grohl = (</font><span style="color: rgb(108, 113, 196); font-family: 'Fira Mono';" class="">0</span><font color="#93a1a1" face="Fira Mono" class="">,&nbsp;</font><font color="#dc322f" face="Fira Mono" class="">“foo</font><font face="Fira Mono" class=""><font color="#dc322f" class="">”</font><font color="#93a1a1" class="">,&nbsp;</font></font><font color="#dc322f" face="Fira Mono" class="">“fighters</font><font face="Fira Mono" class=""><font color="#dc322f" class="">”</font><font color="#93a1a1" class="">,&nbsp;</font></font><span style="color: rgb(108, 113, 196); font-family: 'Fira Mono';" class="">0.0</span><font color="#93a1a1" face="Fira Mono" class="">)</font></div><div class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><br class=""></div><div style="margin: 0px; line-height: normal;" class="">Why couldn’t subscript (and $0 in map, for that matter) return a type that’s the “intersection” of Int, String, and Double?</div></div></div></div></div></div></div></div></blockquote><div><br class=""></div><div>Swift has no such intersection type. &nbsp;The closes analogs we have are Any (or if you allow boxing, NSObject/NSValue).</div><div><br class=""></div><div>-Chris</div></div></body></html>