From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14075 invoked from network); 10 Mar 2023 11:37:51 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2023 11:37:51 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 1E8294140D; Fri, 10 Mar 2023 21:37:48 +1000 (AEST) Received: from freefriends.org (freefriends.org [96.88.95.60]) by minnie.tuhs.org (Postfix) with ESMTPS id F168641406 for ; Fri, 10 Mar 2023 21:37:42 +1000 (AEST) X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 32ABbd1C003112 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Mar 2023 04:37:40 -0700 Received: (from arnold@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 32ABbdfV003111; Fri, 10 Mar 2023 04:37:39 -0700 From: arnold@skeeve.com Message-Id: <202303101137.32ABbdfV003111@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Fri, 10 Mar 2023 04:37:39 -0700 To: tuhs@tuhs.org, ralph@inputplus.co.uk References: <20230309230130.q4I-f%steffen@sdaoden.eu> <849f8da7-8df2-619c-6080-d40d0ef6fc57@makerlisp.com> <20230310100855.C74931FBE4@orac.inputplus.co.uk> In-Reply-To: <20230310100855.C74931FBE4@orac.inputplus.co.uk> User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID-Hash: 66LRAV6LAJMKOO4MCQSHGGKHA6EJYGDB X-Message-ID-Hash: 66LRAV6LAJMKOO4MCQSHGGKHA6EJYGDB X-MailFrom: arnold@skeeve.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: I can't drive 55: "GOTO considered harmful" 55th anniversary List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Ralph Corderoy wrote: > Hi Werner, > > > after a stint in Java with its multilevel break... > > Given sh(1)'s break takes an optional number of loops to break out of, > I'm surprised C stuck with just the single-level break. C predates the Bourne shell by several years. Remember too that the C compiler had to fit in a small space; having multilevel or labelled breaks requires more bookkeeping. The idea of labelled loops is not at all new, Ada had them in the 80s and it wasn't new then. IIRC Go also provides them. Arnold