Join Slack
Powered by
Is there a shorthand way of having a `MutableList&...
# announcements
s
Sam Garfinkel
08/21/2020, 2:51 PM
Is there a shorthand way of having a
MutableList<>
property with a getter that returns it as a
List<>
?
s
Shawn
08/21/2020, 2:53 PM
people have been formally proposing it since at least 2018, talked about for longer, I’d imagine
https://github.com/matejdro/KEEP/blob/private_public_property_types/proposals/private_public_property_types.md
Shawn
08/21/2020, 2:55 PM
but the answer is no, not currently
j
Javier
08/21/2020, 3:09 PM
In some use cases, maybe buildList
s
Sam Garfinkel
08/21/2020, 3:18 PM
Alright, thanks
Open in Slack
Previous
Next