<div dir="ltr"><div><div>lol we might as well use a lozenge as the separator<br><br><span style="font-family:monospace,monospace">let fsa:[3, 2 &lt;&gt; Int] = [3, 2 &lt;&gt; 1, 2, 3, 4, 5, 6]</span><br><br></div>Some languages like Pollen even go the unicode route and use an actual lozenge<br><br><span style="font-family:monospace,monospace">let fsa:[3, 2 ◊ Int] = [3, 2 ◊ 1, 2, 3, 4, 5, 6]</span><br><br></div>this character is actually very easy to type (≤ 3 keystrokes) in both OSX and Linux, the only two platforms Swift is targeting currently. It’s also a standard character present in every monospace font.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 23, 2017 at 12:18 PM, Robert Bennett <span dir="ltr">&lt;<a href="mailto:rltbennett@icloud.com" target="_blank">rltbennett@icloud.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">I’ll throw my syntax suggestion into the mix: backslashed brackets for the braces, a colon for the separator.<div><br></div><div>let fsa: \[3: Int\] = \[3: 1, 2, 3\]</div><div><br></div><div>Or maybe go the string interpolation route and only backslash the first bracket.</div><div><br></div><div>let fsa: \[3: Int] = \[3: 1, 2, 3]</div><div><br></div><div>I think that looks pretty clean. For one-dimensional arrays, you could even omit the size and infer the type.</div><div><br></div><div>let fsa = \[1, 2, 3] // Of type \[3: Int]</div><div><br></div><div>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><br><div><blockquote type="cite"><div><div class="h5"><div>On Jul 23, 2017, at 12:08 PM, Taylor Swift via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br class="m_6545174404105442873Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Using the <i>multiplication operator</i> as a <i>separator</i> character seems like an extraordinarily bad idea.<br><br><span class="m_6545174404105442873gmail-im"><span style="font-family:monospace,monospace">let fsa:[2 * Int] = [2 * 5, 3</span><span style="font-family:monospace,monospace">] // [10, 3] ???<br></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 23, 2017 at 11:59 AM, David Sweeris <span dir="ltr">&lt;<a href="mailto:davesweeris@mac.com" target="_blank">davesweeris@mac.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br>Sent from my iPhone</div><span><div><br>On Jul 23, 2017, at 08:45, Taylor Swift via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 23, 2017 at 5:29 AM, Adrian Zubarev via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="m_6545174404105442873m_3993060377183746783gmail-m_8204795069290857078bloop_markdown"><p>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><br></div><div>What about a double colon?<span style="font-family:monospace,monospace"><br></span><br><span style="font-family:monospace,monospace">let fsa:[5, 2::Int] = [5, 2::[::0, 0]: 5, [</span><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace">::</span>5, 1]: 6, default: -1]<br></span></div></div></div></div></blockquote><br></span><div>I thought we&#39;d mostly settled on &quot;let fsa: [count * Type]&quot; last time this came up.</div><div><br></div><div>- Dave Sweeris </div></div></blockquote></div><br></div></div></div><span class="">
______________________________<wbr>_________________<br>swift-evolution mailing list<br><a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br></span></div></blockquote></div><br></div></div></blockquote></div><br></div>