Hi, wondering whether some kind of shorthand might...
# language-proposals
s
Hi, wondering whether some kind of shorthand might be useful for exposing a value of one type as a super-type with a more restrictive interface. E.g.
Copy code
val mylist : MutableList<Thing> exposedas List<Thing>
- keeping the mutable functionality private to the class, but exposing the immutable interface. What do you think?
d
s
Awesome, thanks!