I prefer prefixing property (and method) access with self. in my code. This makes it immediately obvious if a variable is local to the function or actually a property of the instance.
I assume this has already been discussed and would like to know why it was decided to not require self for property and method access.
On Mon, Dec 7, 2015 at 6:21 PM, Florian Reinhart via swift-evolution < swift-evolution@swift.org> wrote:
Hi all,
I prefer prefixing property (and method) access with self. in my code.
This makes it immediately obvious if a variable is local to the function or
actually a property of the instance.
I assume this has already been discussed and would like to know why it was
decided to not require self for property and method access.