Update CodingGuidelines.md

This commit is contained in:
Brent Simmons 2019-10-28 11:11:16 -07:00 committed by GitHub
parent 9c946758bf
commit 729b768547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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. Youll find several instances in the code, but this is done carefully — we dont 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 whats going on.