[Info-vax] Coding with/without RDBMS
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Thu Oct 14 20:29:04 EDT 2021
On Friday, October 15, 2021 at 8:37:36 AM UTC+13, Dave Froble wrote:
> There are perfectly logical uses for both GoSub and GoTo. Such as just
> throwing out the anchor if fatal errors occur.
Python manages that without labels and gotos. The relevant calls will raise the relevant exceptions if unexpected situations occur, and all your script has to do is not even bother to deal with them, and it will abort with a nice, informative error message, pointing to the line where the error occurred, without extra work on your part.
> Got to ask, just what do you think a NEXT, WHILE_END, and such statements do?
> Sure looks like another form of GoTo to me.
Think of them as “spaghetti-proof” transfers of control.
More information about the Info-vax
mailing list