🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3498

Re: Multi-level break and elimination of GOTO

#3498
From: Greg Comeau
Date: Fri, 17 Nov 1995 23:11
26 lines
1569 bytes
In article <4811a6$o1v@gap.cco.caltech.edu> ccwf@locke.klab.caltech.edu (Charles Fu) writes:
>Perhaps a C++-ish syntax like
>
>    do<outer> {
>        while<inner>(exp1) {
>            if (exp2)
>                break outer;  /* or break<outer> */
>        }
>    } while (whatever);
>
>would be clearer and simpler to parse.

This wouldn't be the first "overload" of C++ template looking things.
C++'s "new style casts" do so, but I think the "analogy" is there.
Here, it would just be because the parsing would be easy.
I wonder what kind of confusion that would case.
Perhaps something such as :label strictly in these contexts
might be better, but then, that would probbaly cause confusion too :-(
Perhaps (but perhaps not) there is some other extra character (or combo)
(since you like C++-ish syntax, perhaps ::? ;-}).

- Greg
-- 
       Comeau Computing, 91-34 120th Street, Richmond Hill, NY, 11418-3214
 Here:comeau@csanta.attmail.com / BIX:comeau or comeau@bix.com / CIS:72331,3421
    Voice:718-945-0009 / Fax:718-441-2310 / Prodigy: tshp50a / WELL: comeau
Technical Details
Message-ID: <48j4rl$48m@panix.com>
Path: arc1-ca.pugleaf.net!news.intercon.com!panix!not-for-mail
References: <47s7l0$r18@news.mel.aone.net.au> <815950407snz@genesis.demon.co.uk> <4811a6$o1v@gap.cco.caltech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.intercon.com!panix!not-for-mail
From: comeau@panix.com (Greg Comeau)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: Multi-level break and elimination of GOTO
Date: 17 Nov 1995 18:11:49 -0500
Organization: Comeau Computing
Message-ID: <48j4rl$48m@panix.com>
References: <47s7l0$r18@news.mel.aone.net.au> <815950407snz@genesis.demon.co.uk> <4811a6$o1v@gap.cco.caltech.edu>
Reply-To: comeau@csanta.attmail.com (Greg Comeau)
NNTP-Posting-Host: panix.com