@josiahcampbell pointed out that the consistent use of explicit self. on instance variables is contrary to most Swift style guides (and there are many). Old school Java developers used this technique (this.) for a couple of reasons 1) make explicit what are instance variables and what are not. 2) Autocomplete didn't kick in on many IDEs (Eclipse, JBuilder, etc) until you you typed the dot.
Both of these benefits are a moot point now with Xcode and Android Studio both using syntax highlighting to differentiate between local and instance vars. In addition, they autocomplete on every keystroke.
The only remaining merit for this approach would be in the text book, the default syntax highlighting in LaTeX does not distinguish between local and instance vars. Methinks it shouldn't be hard for @dulimarta to solve this. If so, we should probably conform to conventional style guidelines and abandon our old duffer ways.
@josiahcampbell pointed out that the consistent use of explicit self. on instance variables is contrary to most Swift style guides (and there are many). Old school Java developers used this technique (this.) for a couple of reasons 1) make explicit what are instance variables and what are not. 2) Autocomplete didn't kick in on many IDEs (Eclipse, JBuilder, etc) until you you typed the dot.
Both of these benefits are a moot point now with Xcode and Android Studio both using syntax highlighting to differentiate between local and instance vars. In addition, they autocomplete on every keystroke.
The only remaining merit for this approach would be in the text book, the default syntax highlighting in LaTeX does not distinguish between local and instance vars. Methinks it shouldn't be hard for @dulimarta to solve this. If so, we should probably conform to conventional style guidelines and abandon our old duffer ways.