Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #389641
| Path | csiph.com!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
| Newsgroups | comp.lang.c |
| Subject | Re: goto considered helpful |
| Date | Fri, 13 Dec 2024 10:11:56 -0800 |
| Organization | None to speak of |
| Lines | 33 |
| Message-ID | <87o71fv4er.fsf@nosuchdomain.example.com> (permalink) |
| References | <vi54e9$3ie0o$1@dont-email.me> <vitjgg$1tukq$2@dont-email.me> <vj1bss$325uo$1@dont-email.me> <vj1h4i$335q1$2@dont-email.me> <vj1mhi$34p7h$1@dont-email.me> <vj1prj$35je4$1@dont-email.me> <vj7dup$he7i$1@dont-email.me> <vjasuj$17uod$1@dont-email.me> <vjc87h$1apid$1@paganini.bofh.team> <vjcbe1$1jns0$1@dont-email.me> <87wmg5x4b1.fsf@nosuchdomain.example.com> <vjd96b$1pbed$1@dont-email.me> <87jzc5wx3s.fsf@nosuchdomain.example.com> <vjdde8$1q2to$2@dont-email.me> <87frmtwuzq.fsf@nosuchdomain.example.com> <20241212144454.00003b83@yahoo.com> <87wmg4vaeb.fsf@nosuchdomain.example.com> <vjgsfq$3ajis$1@dont-email.me> <vjh4qc$3c7nb$1@dont-email.me> <vjhc8m$3e9an$1@dont-email.me> <vjhg7j$3f5kg$1@dont-email.me> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Fri, 13 Dec 2024 19:11:59 +0100 (CET) |
| Injection-Info | dont-email.me; posting-host="66c77e050ec176338b057ef443530fd1"; logging-data="3732068"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kv0Wp3m0hCXt8k/ZewFc9" |
| User-Agent | Gnus/5.13 (Gnus v5.13) |
| Cancel-Lock | sha1:JBoR1VPIm8mO/odyOTOKlkyJlVE= sha1:FcW0/J2gv4qSuqgXbPMkXyId9zc= |
| Xref | csiph.com comp.lang.c:389641 |
Show key headers only | View raw
bart <bc@freeuk.com> writes:
> On 13/12/2024 13:19, David Brown wrote:
>> On 13/12/2024 12:12, bart wrote:
[...]
>>> I've had a quick look through my codebases (not C), and I couldn't
>>> see an example of a numbered break. All I could find was the
>>> equivalant of:
>>>
>>> break # the vast majority
>>> break all
>>>
>>> The latter breaks out of the outermost loop.
>>>
>> So you have a feature (numbered breaks) in your language that you
>> never use, but have been recommending here as a useful addition to
>> C?
>
> I'm saying that if you don't have the general feature, then the more
> limited one might be worth considering, as it will take care of most
> of the use-cases not covered by break.
In current C, we don't have either feature.
I suggest that covering *most* of the use-cases would not be good
enough. Adding your "break all" to C (defining it in the standard
and implementing it in compilers) would not be significantly easier
than adding "break LABEL". I see no point in adding a partial
feature when a more complete feature is (a) just as easy, and (b)
has ample precedent in other languages.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-07 12:34 +0100
Re: question about linker Bart <bc@freeuk.com> - 2024-12-07 13:04 +0000
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-07 15:36 +0100
Re: question about linker Bart <bc@freeuk.com> - 2024-12-07 15:33 +0000
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-07 13:38 -0800
Re: question about linker Bart <bc@freeuk.com> - 2024-12-07 22:47 +0000
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-09 19:46 +0100
Re: question about linker bart <bc@freeuk.com> - 2024-12-11 02:21 +0000
Re: question about linker antispam@fricas.org (Waldek Hebisch) - 2024-12-11 14:39 +0000
Re: question about linker bart <bc@freeuk.com> - 2024-12-11 15:34 +0000
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-11 14:06 -0800
Re: question about linker bart <bc@freeuk.com> - 2024-12-12 00:02 +0000
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-11 16:42 -0800
Re: question about linker bart <bc@freeuk.com> - 2024-12-12 01:14 +0000
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-11 17:27 -0800
Re: question about linker bart <bc@freeuk.com> - 2024-12-12 11:48 +0000
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-12 12:50 -0800
goto considered helpful (Was: question about linker) Michael S <already5chosen@yahoo.com> - 2024-12-12 14:44 +0200
Re: goto considered helpful Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-12 13:50 -0800
Re: goto considered helpful Kaz Kylheku <643-408-1753@kylheku.com> - 2024-12-12 22:33 +0000
Re: goto considered helpful David Brown <david.brown@hesbynett.no> - 2024-12-13 09:50 +0100
Re: goto considered helpful bart <bc@freeuk.com> - 2024-12-13 11:12 +0000
Re: goto considered helpful Michael S <already5chosen@yahoo.com> - 2024-12-13 14:39 +0200
Re: goto considered helpful David Brown <david.brown@hesbynett.no> - 2024-12-13 14:31 +0100
Re: goto considered helpful David Brown <david.brown@hesbynett.no> - 2024-12-13 14:19 +0100
Re: goto considered helpful bart <bc@freeuk.com> - 2024-12-13 14:26 +0000
Re: goto considered helpful David Brown <david.brown@hesbynett.no> - 2024-12-13 17:52 +0100
Re: goto considered helpful Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-13 10:11 -0800
Re: goto considered helpful scott@slp53.sl.home (Scott Lurndal) - 2024-12-13 14:16 +0000
Re: goto considered helpful Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-13 14:50 +0100
Re: goto considered helpful (Was: question about linker) Rosario19 <Ros@invalid.invalid> - 2024-12-20 13:52 +0100
Re: goto considered helpful (Was: question about linker) Michael S <already5chosen@yahoo.com> - 2024-12-20 15:27 +0200
Re: goto considered helpful (Was: question about linker) Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-24 09:05 -0800
Re: goto considered helpful (Was: question about linker) Rosario19 <Ros@invalid.invalid> - 2024-12-26 13:33 +0100
Re: goto considered helpful (Was: question about linker) Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-28 09:29 -0800
Re: question about linker Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-12 06:54 -0800
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-11 17:24 +0100
Re: question about linker bart <bc@freeuk.com> - 2024-12-12 12:11 +0000
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-12 15:56 +0100
Re: question about linker Ike Naar <ike@sdf.org> - 2024-12-11 08:43 +0000
Re: question about linker David Brown <david.brown@hesbynett.no> - 2024-12-11 16:28 +0100
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-11 17:46 +0100
Re: question about linker antispam@fricas.org (Waldek Hebisch) - 2024-12-12 02:31 +0000
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-11 17:30 +0100
Re: question about linker David Brown <david.brown@hesbynett.no> - 2024-12-11 17:47 +0100
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-11 17:51 +0100
Re: question about linker bart <bc@freeuk.com> - 2024-12-11 17:20 +0000
Re: question about linker David Brown <david.brown@hesbynett.no> - 2024-12-11 21:46 +0100
Re: question about linker bart <bc@freeuk.com> - 2024-12-11 21:19 +0000
Re: question about linker Michael S <already5chosen@yahoo.com> - 2024-12-12 00:03 +0200
Re: question about linker David Brown <david.brown@hesbynett.no> - 2024-12-12 11:08 +0100
Re: question about linker Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-23 16:02 -0800
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-12 05:50 +0100
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-11 21:35 -0800
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-12 12:38 +0100
Re: question about linker James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-12-18 16:04 -0500
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-19 01:35 +0100
Re: question about linker James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-12-19 06:39 -0500
Re: question about linker antispam@fricas.org (Waldek Hebisch) - 2024-12-19 14:58 +0000
Re: question about linker bart <bc@freeuk.com> - 2024-12-12 12:29 +0000
Re: question about linker Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-12 07:01 -0800
Re: question about linker David Brown <david.brown@hesbynett.no> - 2024-12-11 21:36 +0100
Re: question about linker antispam@fricas.org (Waldek Hebisch) - 2024-12-11 13:59 +0000
Re: question about linker Bart <bc@freeuk.com> - 2024-12-07 14:57 +0000
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-07 16:19 +0100
Re: question about linker Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-07 16:28 +0100
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-07 13:44 -0800
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-07 13:58 -0800
Re: question about linker scott@slp53.sl.home (Scott Lurndal) - 2024-12-07 22:15 +0000
Re: question about linker antispam@fricas.org (Waldek Hebisch) - 2024-12-11 22:51 +0000
Re: question about linker Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-11 15:12 -0800
Re: question about linker bart <bc@freeuk.com> - 2024-12-12 00:52 +0000
csiph-web