[swift-evolution] Default Generic Arguments
Srđan Rašić
srdan.rasic at gmail.com
Mon Jan 23 09:55:28 CST 2017
Hi Everyone,
I've opened a PR (https://github.com/apple/swift-evolution/pull/591) proposing
default generic arguments which I think would be nice addition to the
language. They are also mentioned in "Generic manifesto".
The proposal is focusing around generic types. Generic functions are not
coved by the proposal and I don't think that we need default generic
arguments in generic functions as all the types are always part of the
function signature so the compiler can always infer them. One corner case
might be if using default argument values in which case support for default
generic arguments in functions might be useful.
It would be great to hear your opinions and suggestions so I can refine the
proposal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170123/3d0ae57f/attachment.html>
More information about the swift-evolution
mailing list