[swift-evolution] Requiring self. to access properties and methods
Johan Jensen
jj at johanjensen.dk
Mon Dec 7 12:47:38 CST 2015
It has already been brought up in the (multiple) mail chains named "Proposal:
Re-instate mandatory self for accessing instance properties and functions
<https://lists.swift.org/pipermail/swift-evolution/2015-December/000209.html>
".
You can find more threads and replies to that discussion at
https://lists.swift.org/pipermail/swift-evolution/.
—Johan
On Mon, Dec 7, 2015 at 6:21 PM, Florian Reinhart via swift-evolution <
swift-evolution at 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.
>
> —Florian
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151207/dff89d0c/attachment.html>
More information about the swift-evolution
mailing list