Swift: Function Argument labels and Parameter names

Each function parameter has both argument label and parameter name. Argument label is used in function call and parameter name is used in function implementation. By default parameters use their parameter name as their argument label.

Leave a Reply