benleggiero
02/13/2017, 2:58 PMpublic private(set) var a
miha-x64
02/13/2017, 2:59 PMbenleggiero
02/13/2017, 3:00 PMpublic private(set) var a
get() = ...
set(newValue) = ...
miha-x64
02/13/2017, 3:01 PMpublic var a ...
private set
benleggiero
02/13/2017, 3:02 PMset(newValue)
would only be callable inside private
scope, while all other scopes just see an immutable `val`and its get()
miha-x64
02/13/2017, 3:02 PMbenleggiero
02/13/2017, 3:02 PM