[swift-evolution] [Proposal] Make optional protocol methods first class citizens

Andrey Tarantsov andrey at tarantsov.com
Mon Apr 4 00:52:08 CDT 2016


> I'd prefer a more general solution instead of introducing the notion of an "optional" function: just make it possible to write default implementations inline in a protocol definition. 

This would work, too. I guess there's no need for an “optional” keyword if the implementation is right there in the protocol declaration.

A.



More information about the swift-evolution mailing list