We should move this thread to swift-users.

Here is something that I just tried:

func foo(_: Int, _: Int) {}
func boo(_: (Int, Int)) {}
type(of: foo) == type(of: boo) //=> true ; (((Int, Int)) -> ()).Type

let tuple = (0, 42)
foo(tuple) // Tuple splat was removed => Error
boo(tuple) // Expected => Okay


-- 
Adrian Zubarev
Sent with Airmail

Am 5. Oktober 2016 um 17:02:43, Anton Zhilin via swift-evolution 
(swift-evolut...@swift.org) schrieb:

print(type(of: [Int].append))  //=> (inout Array<Int>) -> (Int) -> ()
print(type(of: print))  //=> ((Array<Any>, String, String)) -> ()
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to