Method parameters in nested closure
问题 I am trying to understand how parameters passed to a method are available to nested closures. I'm nervous that something I wrote won't always have the original parameters available. (these are drastically simplified examples) I have a method that I wrote that specifies a closure as a parameter: func saveNameAndAgeToServer(serverParams: [String:String], completionHandler: (age: NSNumber) -> ()) { // Connect to a server // POST a name and dob from serverParams // Receives a current age in