The getter needs to be more at least as visible as the setter if that's what you're talking about.
👍 1
s
Shawn
10/11/2017, 3:54 PM
No support for write-only properties? :kotlin: Literally unusable!
😜
k
karelpeeters
10/11/2017, 3:55 PM
There's a popular issue about in on YouTrack I think. It's definitely frustrating when you come across one of the few cases that would actually benefit from it.
s
Shawn
10/11/2017, 3:55 PM
For sure, definitely super rare to run across one though
r
Ruckus
10/11/2017, 4:01 PM
I'm one of the weird ones who prefers not having them. Setting a value without being able to retrieve it feels more like just calling a function than interacting with a property, so I prefer to use a
private var
with a function call to set it. I find it makes the intent clearer.
That being said, I would really like the ability to overload the type for setters. It would make DSLs magical.