Aug. 7, 2017
3:33 p.m.
On 7 Aug 2017, at 10:50, Henrik Sperre Johansen <henrik.s.johansen@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