[Info-vax] Coding with/without RDBMS

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Sat Oct 23 04:01:44 EDT 2021


On Tuesday, October 19, 2021 at 3:19:20 PM UTC+13, Arne Vajhøj wrote:
>
> 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. 

You wouldn’t need a goto for that. That’s why your code sounds wrong.



More information about the Info-vax mailing list