(1 to: self) inject: 1 into: #*

agree at carltonfields.com agree at carltonfields.com
Wed Jan 19 22:01:51 UTC 2000


> Second, IIRC we went through an exercise a while back to get > rid of message
> implementations in various classes which, while they were > useful, served
> mostly as crutches and/or bandages for problems elsewhere in > the image.
> (Someone else will have to chime in with specifics here, as I > was only an
> observer of this process).  Slapping bits of Collection protocol
> (specifically #value:value:) into Symbol seems to me to be a > step backwards
> in this regard.  

Indeed.  Why overload #inject:into:?  How about instead using #inject:withBinary: for the alternative form?





More information about the Squeak-dev mailing list