[squeak-dev] ...and some cool Smalltalk history! (Re: [Pharo-users] a Pharo talk from a ruby conference)

Göran Krampe goran at krampe.se
Tue Apr 29 16:48:03 UTC 2014

On 04/29/2014 06:41 PM, tim Rowledge wrote:
> On 29-04-2014, at 9:30 AM, Göran Krampe <goran at krampe.se> wrote:
>> ...now... where do we stuff in #neglect:? :)
> Clearly, aCollection neglect: [:item| item size > myFoo] would return a WeakArray of elements matching the block criterion; then when nobody is paying much attention they can be garbage collected.

I like it. Personally was thinking that neglect could work similar to 
reject but instead return a wrapper using the first collection as a 
"backend". So it uses the same collection but "neglects" those elements 
not matching :)

Dynamically add some nasty Trait?

regards, Göran

More information about the Squeak-dev mailing list