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

Vladimir.S svabox at gmail.com
Sun Jul 3 16:10:22 CDT 2016


On 04.07.2016 0:04, Anton Zhilin via swift-evolution wrote:
> [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?

Yes, I believe this should be fixed with SE-0110, if accepted

>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>


More information about the swift-evolution mailing list