Re: Is perl still the No.1 language for sysadmin?
Hi,
Greg Wooledge wrote:
> Yes, "structured programming" was the term used. Structured
> programming uses functions, while loops, if/then/else statements, and
> so on, instead of "GOTO 1230" type commands, to control a program's flow.
Like with Rocky Mountain BASIC of HP 9000 machines in contrast to the
MS-BASIC of my VIC-20.
> Even the most primitive Unix Bourne shell (sh) has no GOTO command.
I was never a fan of Dijkstra's "Go To Statement Considered Harmful"
and perceive modern spaghetti inheritence as more obscure than any goto
noodling.
This paragraph in Linux docs comprehensively shows why C still has its
goto:
https://www.kernel.org/doc/html/v6.0/process/coding-style.html
"7) Centralized exiting of functions"
Have a nice day :)
Thomas
Reply to: