Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
lazy initialisation
Last updated at 8:27 pm UTC on 25 April 2018
Martin Fowler:

Lazy Initialization is a technique that initializes a variable (in OO contexts usually a field of a class) on it's first access.

http://martinfowler.com/bliki/LazyInitialization.html


Direct vs. lazy initialization is an age-old discussion.
Direct (in the #initialize method) tends to be best for Smalltalk, with lazy for certain circumstances.