Update CodingGuidelines.md

This commit is contained in:
Brent Simmons authored and GitHub committed 2019-10-28 11:11:16 -07:00
1 parent 9c946758bf
commit 729b768547
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ Protocols and delegates (which are also protocol-conforming) are preferred.
Protocol conformance should be implemented in Swift extensions.
If a delegate protocol defined in the same file as the delegator class or struct, the protocol interface should be specified before the delegator.
If a delegate protocol is defined in the same file as the delegator class or struct, the protocol interface should be specified before the delegator.
Default implementations in protocols are allowed but ever-so-slightly discouraged. You’ll find several instances in the code, but this is done carefully — we don’t want this to be just another form of inheritance, where you find that you have to bounce back-and-forth between files to figure out what’s going on.