In Swift parameter names are used when you call a method, except for the first parameter. Why is the first name not used?
Using a variation from the Swift manual;
var count2: Int = 0
func incrementBy2(amount: Int, numberOfTimes times: Int) {
count2 += amount * times}
This will work;
incrementBy2(2, numberOfTimes: 7)
However this gives me "Extraneous argument label 'amount' in call"
incrementBy2(amount: 2, numberOfTimes: 7)
Id there a reason for this or is it one of those "just the way it is" things?