[swift-evolution] [Pitch] Introducing role keywords to reduce hard-to-find bugs
vpimentel at tuenti.com
Wed Jun 14 14:56:07 CDT 2017
> El 14 jun 2017, a las 20:01, David Hart via swift-evolution <swift-evolution at swift.org> escribió:
> I think this proposal is a great idea. But I would vote for the alternative of only having default and implicitly deducing extend when default is not specified: it would mimic how override works with only one keyword, it would not introduce a completely new keyword, and it would provide progressive disclosure (your usually start implementing types before going deeper in default implementations). Yes, it would generate warnings at all current default implementations, but it wouldn’t break source compatibility and would provide a lot of value for developers.
+1 to adding only the "default" keyword.
This would be great and very easily to fix in migrations, definitely dissipating the gray area where protocol extensions now live.
More information about the swift-evolution