Re: [RFA] let record_resume fail immediately on error

Tom Tromey
2009-11-10T22:05:32Z

>>>>> ">" == Hui Zhu <teawater@gmail.com> writes:

>> It add a new argument "catch" to do_record_message. If catch is true,
>> it will call "record_message" with catch errors. If not, it will call
>> "record_message" directly.

I don't like this much either. It is trivial for callers that want to
catch errors to catch them. They can use TRY_CATCH or catch_errors(...,
record_message).

Callers that don't want to catch errors should just call
do_record_message directly. This is both for type safety and also
because such calls are plain old C, and should therefore look like it.

Tom