[swift-evolution] Proposal: Allow explicit type parameter specification in generic function call

Goffredo Marocchi panajev at gmail.com
Thu Dec 1 15:18:20 CST 2016


It seems odd that no review or comment has been made as the PR seems a step in the right direction.

Sent from my iPhone

> On 1 Dec 2016, at 14:17, Adrian Zubarev via swift-evolution <swift-evolution at swift.org> wrote:
> 
> You forgot to mention Brent. ;)
> 
> -- 
> Adrian Zubarev
> Sent with Airmail
> 
> Am 1. Dezember 2016 um 15:03:07, Anton Zhilin (antonyzhilin at gmail.com) schrieb:
> 
>> I disagree with the suggestion. Unlike C++'s templates, a Swift's generic function is semantically a single function. One can say that together with a metatype parameter, we pass in witness table.
>> 
>> What I think we should do is make metatypes easier to use. Adrian and I have a PR that has already been waiting for almost a month: https://github.com/apple/swift-evolution/pull/553
>> Plus, removal of .self could simplify such calls.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161201/a149fa9b/attachment.html>


More information about the swift-evolution mailing list