So, `Void->Int` functions would work like this?
let foo = bar(()) // returns Int

> On Apr 15, 2016, at 3:23 PM, Brent Royal-Gordon via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> What I think we *should* eliminate, however, is using `Void` to mean "no 
> arguments" in a closure type. `Void -> Int` should mean that the type takes 
> one argument which happens to be an empty tuple. If you want no arguments, 
> write `() -> Int`.
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to