<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>On 26 Feb 2017, at 19:17, Derrick Ho via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">That is an interesting solution. Haravikk's solution was a breaking change so it undoubtedly had resistance. </div></div></blockquote><div><br></div><div>IMHO, it's a more elegant solution to the same problem. I might be worth pursuing it despite the breaking change because it has more chance of being considered than pure syntactic sugar which the core team is not even considering before Swift 4.</div><br><blockquote type="cite"><div><div dir="ltr"><div>If we were to merely allow Arrays to be cast as type String... then there were be nothing to break.</div><div><br></div><div>String... is technically not a real type though, so when you use it anywhere outside of a functions argument list, it will not compile.</div><div><br></div><div>Maybe we can make a special case?</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Feb 26, 2017 at 12:25 PM Tino Heth <<a href="mailto:2th@gmx.de">2th@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg">I suggest to take a look at the topics "<span style="color:rgba(0,0,0,0.85098);font-family:'Helvetica Neue'" class="gmail_msg">Variadics as an Attribute" and "</span><font color="rgba(0, 0, 0, 0.85098)" face="Helvetica Neue" class="gmail_msg">array splatting for variadic parameters" and </font><a href="https://github.com/Haravikk/swift-evolution/blob/a13dc03d6a8c76b25a30710d70cbadc1eb31b3cd/proposals/nnnn-variadics-as-attribute.md" class="gmail_msg" target="_blank">https://github.com/Haravikk/swift-evolution/blob/a13dc03d6a8c76b25a30710d70cbadc1eb31b3cd/proposals/nnnn-variadics-as-attribute.md</a>.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">This is basically the other way round (arrays would accept variadic arguments), but it has the same effect — and more:</div><div class="gmail_msg">You get rid of the odd "…" type, and it's also possible to use this with types besides array (set, iterator….)</div></div></blockquote></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>