Private setter for var in primary constructor

Normally you define a completely private variable as private var field: String, I don’t see how adding (set) would be that ugly if ugly at all. It’s simple and concise.

3 Likes