> On 7 Aug 2017, at 10:50, Henrik Sperre Johansen 
> <henrik.s.johan...@veloxit.no> wrote:
> 
>>> MyClass>>#property
>>>        ^ property ifNil: [ property := self createNewProperty ]
>>> 
>>> MyClass>>createNewProperty
>>>        "I won't touch property instance variable here, just create a new
>>> value and return it"
>>>        ^ self bar collect: [ :e | e drink ]

I favour this approach :)
and… I consider it the “standard approach” for what goes into Pharo itself. 

Esteban

Reply via email to