Skip to content

Commit 923745d

Browse files
cezarywojcikdrumnkyle
authored andcommitted
added rules 3.1.14 and 3.1.15 (#4)
1 parent e91958c commit 923745d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Make sure to read [Apple's API Design Guidelines](https://swift.org/documentatio
44

55
Specifics from these guidelines + additional remarks are mentioned below.
66

7-
This guide was last updated for Swift 2.2 on August 17th, 2016.
7+
This guide was last updated for Swift 2.2 on August 27th, 2016.
88

99
## Table Of Contents
1010

@@ -469,6 +469,9 @@ do {
469469
}
470470
```
471471

472+
* **3.1.14** Prefer `static` to `class` when declaring a function that is associated with a class as opposed to an instance of that class. Only use `class` if you specifically need the functionality of overriding that function in a subclass, though consider using a `protocol` to achieve this instead.
473+
474+
* **3.1.15** If you have a function that takes no arguments, has no side effects, and returns some object or value, prefer using a computed property instead.
472475

473476
### 3.2 Access Modifiers
474477

0 commit comments

Comments
 (0)