1 min readOct 4, 2019
--
Great article Aaaina. What if we declare global constants as:
struct MyConstant {
static var myName: String { return "Bunty" }
}
myName
is a computed static get only variable. Since it is a computed property it would be allocated temporary memory till the time of the computation. This would also address @Maxims concerns.