Just for the sake of completeness... :)
open open(set) var open_open = ""i
open public(set) var open_public = ""
open internal(set) var open_internal = ""
open fileprivate(set) var open_fileprivate = ""
open private(set) var open_private = ""
public public(set) var public_public = ""
public
How about just using this?
struct MyType {
public fileprivate(set) var timestamp: Date
}
--
Adrian Zubarev
Sent with Airmail
Am 10. Februar 2017 um 18:33:35, Pasquale Ambrosini via swift-evolution
(swift-evolution@swift.org) schrieb:
Hi guys,
My idea is simple, put an access level
Hi guys,
My idea is simple, put an access level control token to the setter of a var
Right now, we are likely to do something like this in order to hide the setter:
fileprivate var _timestamp: Date = Date()
public var timestamp: Date {
return self._timestamp
}
The idea is to do