Backing Fields syntax

Hi all, how about to impl this kind of syntax as for backing field alternative?

image
or
image
instead of
image

It might be very usefull

This issue exists for quite some time now. There are a few design problems with this right now, mainly how this works with private/protected/internal/public (you could construct examples with different getters for all 4 visibility levels) and also how this would interact with setters. My guess is that this is just not a high priority right now since there are easy workarounds.
https://youtrack.jetbrains.com/issue/KT-14663

1 Like