Skip to content

Commit

Permalink
added rules 3.1.14 and 3.1.15 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarywojcik authored and drumnkyle committed Aug 28, 2016
1 parent e91958c commit 923745d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Make sure to read [Apple's API Design Guidelines](https://swift.org/documentatio

Specifics from these guidelines + additional remarks are mentioned below.

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

## Table Of Contents

Expand Down Expand Up @@ -469,6 +469,9 @@ do {
}
```

* **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.

* **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.

### 3.2 Access Modifiers

Expand Down

0 comments on commit 923745d

Please sign in to comment.