home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!mucs!m1!bevan
- From: bevan@cs.man.ac.uk (Stephen J Bevan)
- Newsgroups: comp.lang.c++
- Subject: Re: named loops
- Message-ID: <BEVAN.92Aug23144650@tiger.cs.man.ac.uk>
- Date: 23 Aug 92 13:46:49 GMT
- References: <aldavi01.714376080@starbase.spd.louisville.edu>
- <1992Aug21.143653.10805@alias.com> <1992Aug22.171535.29638@taumet.com>
- Sender: news@cs.man.ac.uk
- Organization: Department of Computer Science, University of Manchester
- Lines: 13
- In-reply-to: steve@taumet.com's message of 22 Aug 92 17:15:35 GMT
-
- In article <1992Aug22.171535.29638@taumet.com> steve@taumet.com (Steve Clamage) writes:
- The main reason, as I see it, is that it adds no functionality and no
- notational convenience to the language. Compare:
-
- while loop1 (...) { ... break loop1; ... }
- while (...) { ... goto endloop1; ... } endloop1:
-
- IMHO it also shows that "break" doesn't really buy you that much
- either. For the price of a label + goto you have "break". If "break" is
- considered such a major win, then the addition (at a minor cost) of a
- optional label would seem to be a win as well.
-
- bevan
-