Is there point of to init { } in Kotlin for simple...
# getting-started
b
Is there point of to init { } in Kotlin for simple declarations? For example: is
private var disposable: CompositeDisposable = CompositeDisposable()
any different than
Copy code
private lateinit var disposable: CompositeDisposable

    init {
        disposable = CompositeDisposable()
    }
s
bachhuberdesign: why do you need
lateinit
if you are initializing it in
init{}
block ?