Join Slack
Powered by
I found I write code like this very often, a priva...
# announcements
m
molikto
10/04/2018, 7:15 AM
I found I write code like this very often, a private mutable object and a public facing immutable api. is anyway to do it more elegantly in Kotlin? does it worth as a syntax sugar?
👍 1
k
karelpeeters
10/04/2018, 7:18 AM
Nothing yet, there's even an example in the docs:
https://kotlinlang.org/docs/reference/properties.html#backing-properties
karelpeeters
10/04/2018, 7:20 AM
And here's the issue:
https://youtrack.jetbrains.net/issue/KT-14663
👍 1
m
molikto
10/04/2018, 7:32 AM
thx
2
Views
Open in Slack
Previous
Next