Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero 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: References: <20240503180102.00002f98@yahoo.com> <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.