// Swift 2.2print([Int].append.dynamicType) //=> inout Array<Int> -> Int -> ()print(print.dynamicType) //=> (Array<protocol<>>, String, String) -> () // Swift 3print(type(of: [Int].append)) //=> (inout Array<Int>) -> (Int) -> ()print(type(of: print)) //=> ((Array<Any>, String, String)) -> ()
Question #1: Methods are still curried. If I’m not mistaken, there was an accepted proposal that uncurries methods. Is it going to be implemented for Swift 4 Stage 1? Question #2: Why nested tuple in type of print? Is it just a formatter bug, or… do functions still take tuples under the hood? If so, then perhaps, implementation needs to be modified to actually use new model, and not just make it look like it does.
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
