[Info-vax] Coding with/without RDBMS
Arne Vajhøj
arne at vajhoej.dk
Mon Oct 18 22:19:18 EDT 2021
On 10/18/2021 6:18 PM, Lawrence D’Oliveiro wrote:
> On Tuesday, October 19, 2021 at 2:33:00 AM UTC+13, Arne Vajhøj
> wrote:
>> I can only think of one case where I will prefer GOTO over
>> alternatives: in a language without exceptions to jump to cleanup
>> code in case of problems.
>
> That sounds wrong. Don’t do that. Why? Because cleanup is something
> you always have to do, problems or no problems. So you never want to
> jump *to* it or *around* it, you always want to go *through* it.
The crystal ball where you saw that the cleanup code was not executed
in the happy case does not work any more and need to be replaced.
Arne
More information about the Info-vax
mailing list