[swift-evolution] Symmetrical operators

David Sweeris davesweeris at mac.com
Sun Nov 13 20:19:56 CST 2016

Although you are correct in that the compiler wouldn't be able to guarantee that both "versions" would give the same answer, but that's currently the case anyway.

Sent from my iPhone

> On Nov 13, 2016, at 20:03, David Sweeris via swift-evolution <swift-evolution at swift.org> wrote:
>> On Nov 13, 2016, at 19:04, arkadi daniyelian <arkdan at icloud.com> wrote:
>> David, what about un-labeled parameters? If a function has 2 parameters of the same type, how does compiler know which ones's which?
> If a function has two unlabeled parameters of the same type, you can already swap their order at the call site.
> - Dave Sweeris
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

More information about the swift-evolution mailing list