<p dir="ltr">-1 for proposal. Current behavior is fine. There is no need to change it<br>
Ondrej b.<br>
</p>
<div class="gmail_quote">On Feb 5, 2016 12:56 AM, "Chris Lattner via swift-evolution" <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On Feb 4, 2016, at 3:26 PM, Maximilian Hünenberger <<a href="mailto:m.huenenberger@me.com">m.huenenberger@me.com</a>> wrote:<br>
><br>
> Is this behavior intended?<br>
><br>
> What disadvantage do I have if a conversion from (a: Int, b: Int) to (x: Int, y: Int) is allowed?<br>
<br>
If that were allowed, then it also stands to reason that a conversion from “(a: Int, b : Int)” to “(b: Int, a : Int)” would also work… but would not swap the elements. IMO, it is best to disallow things misleading things like this.<br>
<br>
-Chris<br>
<br>
><br>
><br>
> Thank you for clarification<br>
> - Maximilian<br>
><br>
>> Am 05.02.2016 um 00:11 schrieb Chris Lattner <<a href="mailto:clattner@apple.com">clattner@apple.com</a>>:<br>
>><br>
>><br>
>>> On Feb 4, 2016, at 10:57 AM, Maximilian Hünenberger <<a href="mailto:m.huenenberger@me.com">m.huenenberger@me.com</a>> wrote:<br>
>>><br>
>>> Is there a reasoning behind treating (Int, Int) and (lhs: Int, rhs: Int) as separate types?<br>
>><br>
>> I’m not sure what you mean by “separate types”. One has labels, one does not, so they are clearly separate.<br>
>><br>
>> Further, "(Int, Int)” needs to be compatible/convertible to "(a : Int, b : Int)”, but “(a : Int, b : Int)” should not be convertible to “(x : Int, y : Int)”.<br>
>><br>
>>> Is there a connection to your tuple splat proposal?<br>
>><br>
>> No connection at all.<br>
>><br>
>> -Chris<br>
>><br>
><br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div>