Skip to content

Commit 4232e52

Browse files
committed
A little less wordy and less strict about self
1 parent 14461aa commit 4232e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ The example above demonstrates the following style guidelines:
191191

192192
### Use of Self
193193

194-
Avoid using `self` since Swift does not require it to access an object's properties or invoke its methods.
194+
For conciseness, avoid using `self` since Swift does not require it to access an object's properties or invoke its methods.
195195

196-
The only reasons for requiring the use of `self` is to differentiate between property names and arguments when initializing a class or structure and when referencing properties in closures to make capture semantics explicit:
196+
Use `self` when required to differentiate between property names and arguments in initializers, and when referencing properties in closures to make capture semantics explicit:
197197

198198
```swift
199199
class BoardLocation {

0 commit comments

Comments
 (0)