igor.wojda
01/27/2017, 11:17 AMlateinit
with immutable (val) properties or is it just deliberty forced limitation?
I wonder becouse this limitation does not allow to define non nullable variable that will be initialized latter only once.
Now we can only have mutable injected variables witch can be latter changed by accident (val + lateinit would solve this issue)
Now: @Inject lateinit var repository: Repository
Want: @Inject lateinit val repository: Repository
//initialization is delayed but it is still possible assign value only oncerobin
01/27/2017, 11:46 AM