请问老师swift3种函数调用的时候,默认值参数交换位置调用的功能是否已经取消,现在编译是错误的
func sayHello(to name:String = "Playground", withGreetingWord greadting:String = "Hello", punctuation:String = "!") -> String {
return "\(greadting),\(name)\(punctuation)"
}
sayHello()
sayHello(to: "OC", withGreetingWord: "Bye", punctuation: "!!!")
XCODE8 刚才手动试了下, 是不可以交换位置了