When should I do ``` val obj: Type = get() ``` versus ``` val obj: Type by inject() ``` Is it just a...
n
When should I do
Copy code
val obj: Type = get()
versus
Copy code
val obj: Type by inject()
Is it just a decision based on if I want it to be lazy or not? I'm not sure what to consider there.
b
yes.
inject()
purely does a
lazy { get() }