I'm playing with Swift on Xcode6 Beta, and when I'm using in a func definition '#', just like in apple's Swift programing guide, i'm getting the following compiler error:
Extraneous '#' in parameter: 'characterToFind' is already the keyword argument name
// this code is a copy-paste code from apple's Swift language programing guide
func containsCharacter(#string: String, #characterToFind: Character) -> Bool {
for character in string {
if character == characterToFind {
return true
}
}
return false
}
Is it just a bug with the new Xcode?