[Pharo-users] Re: Null Object Pattern

2022-03-21 Thread Esteban Maringolo
Being able to proxy to another object is such an important feature, that even in ES6 (aka "Javascript") there is a Proxy object [1] that allows you to intercept/redefine operations for that object. In the case of Smalltalk, and coming back to the original topic of this thread, that is even more po

[Pharo-users] Re: Null Object Pattern

2022-03-21 Thread Tim Mackinnon
This has been an interesting thread to read on the side, and I appreciate the thought provoking conversion. On Sun, 20 Mar 2022, at 6:11 AM, Richard O'Keefe wrote: > An override of #doesNotUnderstand: *is* (an instance of) the problem. > What part of "you may think you know what to forward now, b

[Pharo-users] Re: Null Object Pattern

2022-03-21 Thread James Foster
Richard, My primary reference for the Proxy Pattern is the classic "Design Patterns, Elements of Reusable Object-Oriented Software" by Gamma, Helm, Johnson, and Vlissides (Addison-Wesley 1995). In describing how to implement the pattern the “Gang of Four (or GOF)" advise “using doesNotUnderstan