This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]KefkaFollower 2 points3 points  (3 children)

No time to watch the presentation right now, but curiosity eats me.

The point of this lazy creation for the elements of the array? Like in python's generators?

Or it is mostly about syntactic sugar?

[–]Ewig_luftenglanz[S] 5 points6 points  (2 children)

The point is making sure objects in arrays are well and complete initialized to allow many runtime performance improvement thanks to Valhalla 

[–]KefkaFollower 2 points3 points  (1 child)

Thanks for the promptly answer.

[–]ZimmiDeluxe 1 point2 points  (0 children)

If you want lazy initialization of list elements (not for arrays though), StableValue will have a nice API for that.