[swift-evolution] You should be able to label a 1-tuple return value as a way to document the return value.

Amir Michail a.michail at me.com
Thu Dec 3 18:35:51 CST 2015


For example:
 
func f(n:Int) -> (errorValue:Int) {
    ...
}
 
print(f(5).errorValue)



More information about the swift-evolution mailing list