当前编译器允许在参数列表中间的默认参数。
原文链接:https://www.f2er.com/swift/321027.htmlf(1)
如果要为第一个参数提供新值,请使用其外部名称:
f(first: 3,1)
文档explains中带有默认值的参数会自动给出一个外部名称:
Swift provides an automatic external name for any defaulted parameter you define,if you do not provide an external name yourself. The automatic external name is the same as the local name,as if you had written a hash symbol before the local name in your code.