Still undecided about how often I should use `self` in Swift code.
Conversation
I really like not at all, because then closures yell at you and make you define the capturing semantic.
3
4
13
1
Implicit calls can occur almost anywhere. I don’t think Swift is intended to offer C-like visibility into that.
2
Local vars can’t have setters & observers. Distinguishing prop from local is valuable (lesson from ObjC).
1
Replying to
Replying to
Fair, but this should be very rare & the code local. Side-effect property accessors are common and distant.
1
I want the language to make code review easier. Surprising things should stand out as much as possible.
1
Show replies
Replying to
2
I expect to lose this because "typing." I will ironically then probably recommend very short local var names…


