Sujet : Re: Threads across programming languages
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c++ comp.lang.cDate : 05. May 2024, 12:00:58
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v17ot7$1qk8q$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Mozilla Thunderbird
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.