What is the meaning of the '#' mark in swift language

前端 未结 5 978
天涯浪人
天涯浪人 2020-11-28 13:37

I have seen code like this:

func hello(name: String, #helloMessage: String) -> String { 
    return \"\\(helloMessa         


        
5条回答
  •  星月不相逢
    2020-11-28 13:50

    With previous versions of Swift everything what @ovejka posted was true. In Swift 2.0 and above it looks like # is unused (in this or similar context, not counting #available)

提交回复
热议问题