Developer Argues For 'Forgotten Code Constructs' Like GOTO and Eval

mikeatTB quotes TechBeacon:
Some things in the programming world are so easy to misuse that most people prefer to never use them at all. These are the programming equivalent of a flamethrower… [But] creative use of features such as goto, multiple inheritance, eval, and recursion may be just the right solution for experienced developers when used in the right situation. Is it time to resurrect these four forgotten code constructs?
The article notes that the Linux kernel uses goto statements, and links to Linus Torvalds’ defense of them. (“Any if-statement is a goto. As are all structured loops…”) And it points out that eval statements are supported by JavaScript, Python, PHP, and Ruby. But when the article describes recursion as “more forgotten than forbidden,” it begs the inevitable question. Are you using these “forgotten code constructs” — and should you be?

Read more of this story at Slashdot.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.