Join Slack
Powered by
Oh you can create a simple function `fun getProper...
# getting-started
e
edwardwongtl
01/31/2018, 11:23 AM
Oh you can create a simple function
fun getPropertyNonNull(): T = property!!
, then use this to access the member property instead of direct access. It does make you code less elegant, but it help reduce a lot of
!!
.
Open in Slack
Previous
Next