> On 22 Jun 2016, at 02:15, Shawn Erickson via swift-evolution 
> <[email protected]> wrote:
> 
> Curious on the possibility of something like the following to denote a no 
> return function?
> 
> func foo() -> !

See "Diverging functions" in "The Rust Programming Language":

<https://doc.rust-lang.org/book/functions.html#diverging-functions>

I suggested using an underscore, but a named type could work better with 
optional chaining:

<http://thread.gmane.org/gmane.comp.lang.swift.evolution/19715/focus=20000>

-- Ben

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to