trent shipley via PLUG-discuss said on Thu, 22 Dec 2022 07:26:18 -0700
>Python is a great first language, and there is no shortage of beginning
>Python books aimed at young beginners. I've never read a juvenalia
>programming book, except maybe pre-Visual Basic BASIC with the line
>numbers and goto-s,
In the 21st century, anyone who teaches a child goto-s, or even fails
to strongly criticize them to the child, should be shot at dawn.
The only tolerable uses for goto are:
1) Assembly language, but who uses that today? And modern assemblers
have JSR (Jump to Subroutine) and RET (Return from subroutine), so
even that is questionable.
2) Jump to an abort subroutine, but even this is ill advised.
3) Break out of a multiply nested loop, but it's much better to
construct each loop to do the right thing.
I haven't used a goto since maybe 1992 (assembler), and I'm proud of
that.
SteveT
Steve Litt
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
---------------------------------------------------
PLUG-discuss mailing list:
PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss