<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 would prefer a “map” symbol of some sort (Scala uses -&gt; obviously that is Swifts return)….&nbsp;<div class=""><br class=""></div><div class="">Between : or =…. I would stick with :.</div><div class=""><br class=""></div><div class="">The key is not equal to the value it only maps to it.</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 2016-02-07, at 0:38:25, James Campbell via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div class="">In Ruby there is a special syntax for hash</div><div class=""><br class=""></div><div class="">[ "key" =&gt; "value"] which makes it less ambiguous compared to =<br class=""><br class=""><div class="acompli_signature">Sent from <a href="https://aka.ms/qtex0l" class="">Outlook Mobile</a></div><br class=""></div><br class=""><br class=""><br class="">
<div class="gmail_quote">On Fri, Feb 5, 2016 at 5:07 PM -0800, "Brent Royal-Gordon via swift-evolution" <span dir="ltr" class="">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a>&gt;</span> wrote:<br class="">
<br class="">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="3D&quot;ltr&quot;" class="">
<pre class="">&gt; If ":" should be replaced by "=" than only at the call site to make it more consistent with variable declaration and initialization:
&gt; 
&gt;         myFunc(number = 4, string = 7)
&gt; 
&gt;         func myFunc(number: Int, string: String) {}
&gt; 
&gt; Although writing "=" instead of ":" in methods in 1.5 years Swift and over 20 years Objective-C would be a huge change.

To be clear, I like colon in parameter lists; I don't see passing a parameter as setting something.

I suppose mainly what I'd like is for attributes to change:

        @available(iOS, introduced: 7.0, deprecated: 8.0)

And *possibly* for dictionary literals to change:

        let dict = ["key" = "value"]        // Also, the shorthand syntax would be [String = String]

Although dictionary literals seem like a relatively high-impact change compared to its value.

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a>
</pre>
</div>

</blockquote>
</div>
</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>