Path: csiph.com!news.swapon.de!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c++
Subject: Re: Threads across programming languages
Date: Tue, 21 May 2024 16:39:13 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <865xv6spjy.fsf@linuxsc.com>
References: <20240503180102.00002f98@yahoo.com> <86ikzqtwqr.fsf@linuxsc.com> <86cyppru3q.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Wed, 22 May 2024 01:39:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ef527a1f0ace8b0bcb46bd1e68f4f6ae"; logging-data="874230"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18OP5WpARBnxQY21AbB12yaIFwLY1bPDWE="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:vExD5/bXokTj+oyeLGnn1ltxDkI= sha1:CCcaHUoUX0i2dVOzRih1wK2dNdg=
Xref: csiph.com comp.lang.c++:119261
Bonita Montero writes:
> Am 14.05.2024 um 04:43 schrieb Tim Rentsch:
>
>> To me that sounds like all the complications of nested functions,
>> and more besides, and no real advantages. The choice of which
>> variables to share is syntactic sugar, there is no difference
>> in expressive power.
>
> Lambdas can reduce a lot of redundant code. [...]
Your example is isomorphic to using nested functions.