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 > <[email protected]> wrote: > > >> On Nov 13, 2016, at 19:04, arkadi daniyelian <[email protected]> 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 > [email protected] > https://lists.swift.org/mailman/listinfo/swift-evolution _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
