Idiomatic way to expose a property using a more narrow type

@ddimitrov, I guess we will agree to disagree on this one :slight_smile:

In my eyes, kotlin is a pragmatic language and as such it should have simple idiomatic-promoted ways to do pragmatic day-to-day patterns - the implementation/exposing-properties pattern seems to me like a workaround more than a conscious design choice…

To be clear - I am not saying that it is not the idiomatic way (as from the documentation it seems it is) I just saying that In my eyes it could have been more elegant…

5 Likes