[swift-evolution] [Proposal] Allow protocols to require functions with default parameter values.
owenzx at gmail.com
Sat Jan 16 09:33:37 CST 2016
Can you make a formal proposal on this? I think this idea is valuable and
should be discussed formally.
I think this can solved this
A formal proposal is like this
You can learn how to do it here <https://github.com/apple/swift-evolution>.
On Sat, Jan 16, 2016 at 5:23 PM, Vatsal Manot via swift-evolution <
swift-evolution at swift.org> wrote:
> Currently, the following the code fails with multiple errors:
> protocol Protocol
> typealias Argument
> func function(argument: Argument = default)
> I propose that we allow protocols to require functions with default
> parameter values. I can’t see any disadvantages to this, and the change
> would only be additive.
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution