[swift-evolution] [Discussion] Determining argument count from context

Anton Zhilin antonyzhilin at gmail.com
Sun Jul 3 16:04:02 CDT 2016


[1,2,3].reduce(0) { $1 }  //=> 3
[1,2,3].reduce(0) { $0 }  // error :(

Am I requesting too much from type checker?
Will recent function type proposals resolve the issue?



More information about the swift-evolution mailing list