第一个参数标签必须写

版本新特性 / Swift 3.0

// *** 以前 ***
func move(x: Int, y: Int) { }
move(10, y: 20)          // 第一个标签消失了,其余保留

func loadOld(named: String, from: String) { }
loadOld("readme", from: "docs")

// *** 在 3.0 版本中 ***
func move(x: Int, y: Int) { }
move(x: 10, y: 20)       // 每个参数都有名称

// 下划线有意去掉标签
func log(_ message: String) { print(message) }
log("done")

// 标签可以与函数内部的名称不同
func load(named name: String, from folder: String) { }
load(named: "readme", from: "docs")