swift-evolution Digest, Vol 4, Issue 35


(Patrick Smith) #1

What if private was just removed, and instead just has a literal description of where the member is accessible from?

public var something: Int
module var something: Int
file var something: Int
scope var something: Int

Patrick


(Ilya Belenkiy) #2

These are very nice and short names. I think that private and private(X) is
better though because it's obvious that it's about access level and not
something else (like a variable name or some other thing). These words need
more context while private(x) doesn't.

···

On Tue, Mar 15, 2016 at 8:48 AM Patrick Smith via swift-evolution < swift-evolution@swift.org> wrote:

What if private was just removed, and instead just has a literal
description of where the member is accessible from?

public var something: Int

module var something: Int

file var something: Int

scope var something: Int

Patrick
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


(Dave Abrahams) #3

Hi Patrick,

Please don't reply to digests. You can use the gmane posting interface
if you want to get your reply into the right thread.
http://news.gmane.org/gmane.comp.lang.swift.evolution

Thanks,

···

on Tue Mar 15 2016, Patrick Smith <swift-evolution@swift.org> wrote:

What if private was just removed, and instead just has a literal description of where the member is accessible from?

public var something: Int
module var something: Int
file var something: Int
scope var something: Int

--
-Dave