> On Mar 29, 2017, at 9:15 AM, Alex Blewitt <[email protected]> wrote: >> On 29 Mar 2017, at 14:10, Jonathan Hull <[email protected] >> <mailto:[email protected]>> wrote: >> >> I think the idea is that it also adds a warning so you can find it later. > > @available(*, deprecated, message: "Don't forget to implement this") > func unimplemented<T>(_ file:String = #file,_ line:Int = #line) -> T { > fatalError("Not implemented \(file):\(line)") > } > > let f: String = unimplemented()
I was suggesting that it would be a useful addition to the language, not that it necessarily needed new compiler support. Does someone want to write a proposal for it? John.
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
