Swift : missing argument label 'xxx' in call
        Posted  
        
            by 
                henry4343
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by henry4343
        
        
        
        Published on 2014-06-05T02:50:17Z
        Indexed on 
            2014/06/05
            3:25 UTC
        
        
        Read the original article
        Hit count: 402
        
ios
|swift-language
func say(name:String, msg:String) {
    println("\(name) say \(msg)")
}
say("Henry","Hi,Swift")  <---- error because missing argument label 'msg' in call
I need to use
   say("Henry",msg:"Hi,Swift")
Why ? If I put more than two var in func so that I need to write var name instead of first var when I call this func
It's really trouble, and I don't see any explain in iBook Swift tutorial.
Can someone give me a help ... Thanks
© Stack Overflow or respective owner