--- Begin Message --- A book that looks explores implementations like that and that always had a place on my desk is this

https://www.amazon.ca/Smalltalk-Style-Suzanne-Skublics/dp/0131655493
I can highly recommend it.

Sebastian

On 2019-07-24 8:32 a.m., Marcus Denker wrote:

On 24 Jul 2019, at 17:30, sergio ruiz <sergio....@gmail.com> wrote:

hmm???

maybe this is cleaner..

tracks
        tracks ifNil: [ self tracks: OrderedCollection new ].
        ^ tracks

I write these methods as


tracks
        ^tracks ifNil: [ tracks :=  OrderedCollection new ].
        
- one line
- does not mix using accusers and not using accessors.


        Marcus




--- End Message ---

Reply via email to