[swift-evolution] [Proposal] Allow protocols to require functions	with default parameter values.
    Vatsal Manot 
    vatsal.manot at yahoo.com
       
    Sat Jan 16 03:23:38 CST 2016
    
    
  
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.
    
    
More information about the swift-evolution
mailing list