[squeak-dev] Re: Collection>>sum implementation

Jason Johnson jason.johnson.081 at gmail.com
Tue Aug 12 13:10:57 UTC 2008


On Tue, Aug 12, 2008 at 1:32 PM, Klaus D. Witzel <klaus.witzel at cobss.com> wrote:
> On Tue, 12 Aug 2008 09:28:22 +0200, Andreas Raab wrote:
>
>> Klaus D. Witzel wrote:
>
> [and I would object accessing inexisting elements for forcing an Error :( ]

It's pretty consistent for the default case to signal an error and
provide an ifNone:/ifEmpty/etc. protocol for people who want other
behavior, no?  Of course unary messages participating in this protocol
do look funny. :)



More information about the Squeak-dev mailing list