[squeak-dev] order of ensure: processing vs. error handling

Bert Freudenberg bert at freudenbergs.de
Tue Sep 6 15:47:12 UTC 2016


On Tue, Sep 6, 2016 at 1:02 AM, Levente Uzonyi <leves at caesar.elte.hu> wrote:

> On Mon, 5 Sep 2016, Chris Muller wrote:
>
>>
>> PS -- I don't care to use ifError: because it doesn't give me access to
>> the Exception object, only its description and receiver.  I think it should
>> more closely mirror on: Error do: [ :err | ... ].
>>
>
> It's too late to change it. It's still useful when you don't care about
> the error nor the performance of the code.
>

That's because ifError: is from Smalltalk 80 and predates Exceptions. The
old implementation is actually quite amazing in its simplicity. See
implementors of #error: and #ifError: in an old Squeak image, e.g.
http://try.squeak.org/#zip=http://files.squeak.org/1.1/Squeak1.1.zip

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160906/77c3f6d1/attachment.htm


More information about the Squeak-dev mailing list