Swift 3 first parameter names

Yes, this is right. Swift is fixing a language inconsistency this way (this was always required for initializers).

If you don’t want to use the external parameter name, just remove it explicitly:

func frobnicate(_ runcible: String) { 
    print("Frobnicate: \(runcible)") 
}

You can read the full rationale in Swift Evolution 0046

Leave a Comment