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 16161 invoked from network); 10 Mar 2023 11:56:44 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 10 Mar 2023 11:56:44 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id EBF6C41416; Fri, 10 Mar 2023 21:56:39 +1000 (AEST) Received: from relay05.pair.com (relay05.pair.com [216.92.24.67]) by minnie.tuhs.org (Postfix) with ESMTPS id 4064141406 for ; Fri, 10 Mar 2023 21:56:32 +1000 (AEST) Received: from orac.inputplus.co.uk (unknown [84.51.130.45]) by relay05.pair.com (Postfix) with ESMTP id 7B03A1A189D for ; Fri, 10 Mar 2023 06:56:31 -0500 (EST) Received: from orac.inputplus.co.uk (orac.inputplus.co.uk [IPv6:::1]) by orac.inputplus.co.uk (Postfix) with ESMTP id 7466D212A8 for ; Fri, 10 Mar 2023 11:56:30 +0000 (GMT) From: Ralph Corderoy To: tuhs@tuhs.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit In-reply-to: <202303101137.32ABbdfV003111@freefriends.org> References: <20230309230130.q4I-f%steffen@sdaoden.eu> <849f8da7-8df2-619c-6080-d40d0ef6fc57@makerlisp.com> <20230310100855.C74931FBE4@orac.inputplus.co.uk> <202303101137.32ABbdfV003111@freefriends.org> Date: Fri, 10 Mar 2023 11:56:30 +0000 Message-Id: <20230310115630.7466D212A8@orac.inputplus.co.uk> Message-ID-Hash: YWODQGENOTHIAEW3M3MZGWI5B2GXMEK2 X-Message-ID-Hash: YWODQGENOTHIAEW3M3MZGWI5B2GXMEK2 X-MailFrom: ralph@inputplus.co.uk 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: Hi Arnold, > > > 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. Yes, but C was evolving. As it aged and spread in use, I agree it could change less easily. > Remember too that the C compiler had to fit in a small space; having > multilevel or labelled breaks requires more bookkeeping. Is it more bookkeeping than is already needed to handle the ends of the nested for-loops, say? -- Cheers, Ralph.