Deutsch   English   Français   Italiano  
<v17ot7$1qk8q$1@raubtier-asyl.eternal-september.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita Montero <Bonita.Montero@gmail.com>
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: Threads across programming languages
Date: Sun, 5 May 2024 13:00:58 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <v17ot7$1qk8q$1@raubtier-asyl.eternal-september.org>
References: <GIL-20240429161553@ram.dialup.fu-berlin.de>
 <v0ogum$1rc5n$1@dont-email.me> <v0ovvl$1ur12$4@dont-email.me>
 <v0p06i$1uq6q$5@dont-email.me>
 <v0shti$2vrco$2@raubtier-asyl.eternal-september.org>
 <v0spsh$31ds4$3@dont-email.me>
 <v0stic$325kv$3@raubtier-asyl.eternal-september.org>
 <v0svtn$32o8h$1@dont-email.me>
 <v0t091$32qj6$1@raubtier-asyl.eternal-september.org>
 <v0u90h$3c1r5$4@dont-email.me>
 <v0v28q$3ku1r$1@raubtier-asyl.eternal-september.org>
 <v105sc$3skqi$1@dont-email.me>
 <v10adm$3to7r$1@raubtier-asyl.eternal-september.org>
 <v124a6$drbu$1@dont-email.me>
 <v125f4$e2kl$1@raubtier-asyl.eternal-september.org>
 <v12a4e$f4f1$2@dont-email.me>
 <v12hf0$gtpa$1@raubtier-asyl.eternal-september.org>
 <20240503180102.00002f98@yahoo.com> <v13o0b$p9ih$4@dont-email.me>
 <v15s0l$1al59$1@dont-email.me> <v16o4t$1gbho$4@dont-email.me>
 <20240505123718.00000503@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 05 May 2024 13:00:56 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="555a89add3c6d55a0fec68f4f17405c5";
	logging-data="1921306"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+OJO8aPAgnLoZlGuSO/ZYTrg1iF/GVflI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:rReym3yznFYkkZy2pe/zTerLxdo=
In-Reply-To: <20240505123718.00000503@yahoo.com>
Content-Language: de-DE
Bytes: 2670

Am 05.05.2024 um 11:37 schrieb Michael S:

> Modern C++, with lambdas and captures, has the same or worse readability
> and comprehensibility problems that I disliked in the past with Ada.

I use lambdas to save code you'd otherwise write multiple times.
If the code isn't shared among different functions I never make
an external function from that. If the code shared multiple times
differs for each usage I extend the lambda with generic callbacks.
This isn't less readable but more readable since the interaction
between the lambda and the surrounding code is that close an
external function wouldn't make sense for me.
Read the code in the thread "Reverse iteration is slower !" for
an example.