I can think of other examples than DI where `latei...
# language-proposals
c
I can think of other examples than DI where
lateinit
is useful. Android has
onCreate()
, before it EJB had
ejbCreate()
(I think, memory is fuzzy). More generally, it's not uncommon for container technologies to have control of the constructor call and give you a hook for doing your initialization after construction.
👍 1