Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Computed Properties similar to Lazy Properties
Are computed properties similar to lazy properties im that they are not computed/found durimg initializiation, rather they are computed later when the computed properties are called? I.e. Is the computed property found during initialization of when its called?
1 Resposta
+ 1
Computed properties are computed every time the property is used; whilst a lazy property is only computed the first time that it is used, after that: the value is just reused. To sum up, a computed value is calculated every time it is referenced whilst a lazy property is computed once, when it is first referenced.