<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="">I’ll throw my syntax suggestion into the mix: backslashed brackets for the braces, a colon for the separator.<div class=""><br class=""></div><div class="">let fsa: \[3: Int\] = \[3: 1, 2, 3\]</div><div class=""><br class=""></div><div class="">Or maybe go the string interpolation route and only backslash the first bracket.</div><div class=""><br class=""></div><div class="">let fsa: \[3: Int] = \[3: 1, 2, 3]</div><div class=""><br class=""></div><div class="">I think that looks pretty clean. For one-dimensional arrays, you could even omit the size and infer the type.</div><div class=""><br class=""></div><div class="">let fsa = \[1, 2, 3] // Of type \[3: Int]</div><div class=""><br class=""></div><div class="">And I agree with Taylor that the separator chosen should have no standalone use in the language — colon, semicolon, pound sign, etc are OK, but operators shouldn’t be used.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 23, 2017, at 12:08 PM, Taylor Swift via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Using the <i class="">multiplication operator</i> as a <i class="">separator</i> character seems like an extraordinarily bad idea.<br class=""><br class=""><span class="gmail-im"><span style="font-family:monospace,monospace" class="">let fsa:[2 * Int] = [2 * 5, 3</span><span style="font-family:monospace,monospace" class="">] // [10, 3] ???<br class=""></span></span></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Jul 23, 2017 at 11:59 AM, David Sweeris <span dir="ltr" class=""><<a href="mailto:davesweeris@mac.com" target="_blank" class="">davesweeris@mac.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class=""><div class=""><br class=""><br class="">Sent from my iPhone</div><span class=""><div class=""><br class="">On Jul 23, 2017, at 08:45, Taylor Swift via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Jul 23, 2017 at 5:29 AM, Adrian Zubarev via swift-evolution <span dir="ltr" class=""><<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="m_3993060377183746783gmail-m_8204795069290857078bloop_markdown"><p class="">I wanted to read the proposal, but skipped it as soon as I’ve seen the syntax. From the esthetic point of you the proposed syntax is really ugly. Again I’m not speaking against the feature in general, nor against any of the technical benefits fixed-size array will provide to us. I simply dislike the syntax, which in my opinion does not fit to Swift.</p></div></div></blockquote><div class=""><br class=""></div><div class="">What about a double colon?<span style="font-family:monospace,monospace" class=""><br class=""></span><br class=""><span style="font-family:monospace,monospace" class="">let fsa:[5, 2::Int] = [5, 2::[::0, 0]: 5, [</span><span style="font-family:monospace,monospace" class=""><span style="font-family:monospace,monospace" class="">::</span>5, 1]: 6, default: -1]<br class=""></span></div></div></div></div></blockquote><br class=""></span><div class="">I thought we'd mostly settled on "let fsa: [count * Type]" last time this came up.</div><div class=""><br class=""></div><div class="">- Dave Sweeris </div></div></blockquote></div><br class=""></div>
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></body></html>