美文网首页
function types cannot have argum

function types cannot have argum

作者: 面糊 | 来源:发表于2017-12-12 00:29 被阅读162次

    从Swift3.0开始, 苹果官方建议方法中函数类型的参数不要带参数名称, 尤其是不能带外部参数名.
    参考链接: https://github.com/apple/swift-evolution/blob/master/proposals/0111-remove-arg-label-type-significance.md

    func request(urlString: String, parameters: [String : Any], completion: @escaping (result: Any?, Error?) -> ()) {}

    相关文章

      网友评论

          本文标题:function types cannot have argum

          本文链接:https://www.haomeiwen.com/subject/tofgixtx.html