Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: Threads across programming languages Date: Fri, 17 May 2024 22:17:34 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <20240503180102.00002f98@yahoo.com> <20240505123718.00000503@yahoo.com> <20240513150450.00003030@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 18 May 2024 00:17:35 +0200 (CEST) Injection-Info: dont-email.me; posting-host="1929e3b91cfdbb249fca9464761618bb"; logging-data="2532336"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VMph+fHFYLKbdu3guW4l6" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:LZ63tnn4dm4VwwM/QrcdvLgZl/g= Bytes: 2513 On Mon, 13 May 2024 15:04:50 +0300, Michael S wrote: > On Mon, 13 May 2024 00:43:38 -0000 (UTC) Lawrence D'Oliveiro > wrote: > >> On Sun, 5 May 2024 12:37:18 +0300, Michael S wrote: >> >> > As a code reader, I very much prefer C, where nested function are not >> > allowed at all. >> >> The GNU C compiler allows them: see my example in the “Recursion, Yo” >> thread. > > Which does not make it legal C. Or good ideea. Worthwhile comparing, though: the one using nested functions is 99 source lines; the one doing it in strictly standard C is 128 source lines. That’s nearly 30% more code to do the same thing.