On 02/12/2023 05:35, Nir Lisker wrote:

    Lazy initialization in many places that IMHO is not needed


I noticed this for the first time in classes like Box, Sphere and Cylinder. Their dimension properties are lazily initialized, but are also initialized on construction, so I never understood what the point was.

Yeah, those are good examples where the lazy initialization is counter productive :)

We should be on the look out for such things and remove it where it's not beneficial.

--John

Reply via email to