[swift-evolution] Default Generic Arguments
srdan.rasic at gmail.com
Mon Jan 23 09:55:28 CST 2017
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution