My syntax suggestion for that - ```private val us...
# language-proposals
s
My syntax suggestion for that -
Copy code
private val users = MutableLiveData(0)
  exposeas LiveData<User>
3
e
maybe
exposeAs
s
I was thinking that, but seems the convention is to keep keywords all lower case, even when composed of two words e.g. - lateinit, typealias etc.
e
right..
s
also just realised that would need to think through how to handle protected status
e
? I'd say the modifiers is declared after
exposeas
, in your case is implicitely
public
s
that’s one option. Theoretically could get really complex and have different types for private, protected, internal and public, each being more restrictive.
Copy code
private val something = RawType()
  exposeas protected MoreRestrictiveInteface
  exposeas internal EvenMoreRestrictiveInterface
  exposeas MostRestrictiveInterface
👍 1