🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3377

Re: How to eliminate GOTO?

#3377
From: Goran Larsson
Date: Fri, 25 Aug 1995 11:43
14 lines
1054 bytes
In article <41iebe$kec@news0.rain.rg.net> Paul Long <plong@perf.com> writes:
| FWIW, PL/I uses the keyword, leave. At some point in its evolution, a number
| was allowed to follow the keyword that specifies the number of loops to leave,
| e.g., leave 2.

What a disaster. That is even more dangerous than goto!
Add a new loop nesting and you have to locate all affected leaves.
If you forget one -> a total mess...

-- 
 Goran Larsson              Phone: +46 13 299588  FAX: +46 13 299022
 Approve AB                        +46 589 12810       +46 589 16901
 hoh@approve.se
           I was an atheist, until I found out I was God.
Technical Details
Message-ID: <1995Aug25.114323.2982@lorelei.approve.se>
Path: arc1-ca.pugleaf.net!mn4.swip.net!lorelei!hoh
References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu> <41iebe$kec@news0.rain.rg.net>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.lang.c
Path: arc1-ca.pugleaf.net!mn4.swip.net!lorelei!hoh
From: hoh@lorelei.approve.se (Goran Larsson)
Subject: Re: How to eliminate GOTO?
Message-ID: <1995Aug25.114323.2982@lorelei.approve.se>
Organization: Home of the Hacker of Hackefors
References: <41cke4$gtd@sparcserver.lrz-muenchen.de> <41glno$3a0@caip.rutgers.edu> <41iebe$kec@news0.rain.rg.net>
Date: Fri, 25 Aug 1995 11:43:23 GMT