[swift-evolution] Proposal: Re-instate mandatory self for accessing instance properties and functions

Al Skipp al_skipp at fastmail.fm
Sun Dec 13 10:16:32 CST 2015


> On 13 Dec 2015, at 15:32, David Hart via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> For the record I would also like it if the "globals must start with an uppercase letter" rule were enforced by the compiler (well, not in the playground, those aren't true globals). 
> 
> +1, in the same vein, global a should stand out :)

-1 from me.

I’d much prefer a way of name spacing free functions so that they don’t pollute global scope. That would help to reduce the potential ambiguity with implicit self too.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151213/f9a77be9/attachment.html>


More information about the swift-evolution mailing list