Re: Euphoria features
- Posted by Bernie Ryan <bwryan at PCOM.NET> Nov 15, 1999
- 511 views
>>I seem to recall that even the K&R text acknowleged that the GOTO is the >>best method of expressing that intent. K&R page 62 section 3.9 I qoute : "C provides the infinitely-abusive goto statement, and labels to branch to. Formally, the goto is never necessary, and in pratice it is almost always easy to write code without it." Then they give two examples one using the goto to get out deeply nested structure and then the second with flags and tests to exit showing that code involving a goto can always be written without one. All Euphoria needs two keywords, one that breaks out of a single nested structure and one that breaks out of deeply nested structure. This would would eliminate the abuse of a goto.