<html><head></head><body><div>In Ruby there is a special syntax for hash</div><div><br></div><div>[ "key" => "value"] which makes it less ambiguous compared to =<br><br><div class="acompli_signature">Sent from <a href="https://aka.ms/qtex0l">Outlook Mobile</a></div><br></div><br><br><br>
<div class="gmail_quote">On Fri, Feb 5, 2016 at 5:07 PM -0800, "Brent Royal-Gordon via swift-evolution" <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="3D"ltr"">
<pre>> If ":" should be replaced by "=" than only at the call site to make it more consistent with variable declaration and initialization:
>
> myFunc(number = 4, string = 7)
>
> func myFunc(number: Int, string: String) {}
>
> 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
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution
</pre>
</div>
</blockquote>
</div>
</body></html>