Deutsch   English   Français   Italiano  
<v17d1m$1o3tr$1@dont-email.me>

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

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Paavo Helde <eesnimi@osa.pri.ee>
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: Threads across programming languages
Date: Sun, 5 May 2024 10:38:31 +0300
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <v17d1m$1o3tr$1@dont-email.me>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 05 May 2024 09:38:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c7d1452d6ab0850f7ed8579b647dcd57";
	logging-data="1839035"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ndWvxXVQhq4B9xXXCuClG0vz4M2seJ1s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:jPKtJXxjJwKsLC06HuyjeaazVdc=
Content-Language: en-US
In-Reply-To: <v16o4t$1gbho$4@dont-email.me>
Bytes: 3222

On 05.05.2024 04:41, Lawrence D'Oliveiro wrote:
> On Sat, 4 May 2024 20:41:42 +0300, Paavo Helde wrote:
> 
>> On 04.05.2024 01:20, Lawrence D'Oliveiro wrote:
>>
>>> On Fri, 3 May 2024 18:01:02 +0300, Michael S wrote:
>>>
>>>> For C, I agree, mostly because C has no nested functions.
>>>
>>> GCC implements nested functions in the C compiler. Though oddly, not in
>>> C++.
>>>
>> C++ already has functions nested in namespaces, namespaces nested in
>> namespaces, functions nested in classes (static and non-static member
>> functions), and classes nested in classes. It's already a lot of
>> nesting, no need to complicate the matters more.
>>
>> In Pascal, function nesting is used for better encapsulation of data. In
>> C++, the same is achieved in a cleaner and more explicit way via classes
>> and member functions, so no need for this kind of nesting.
> 
> Interesting, isn’t it? You mention all the complications of C++, and how
> it doesn’t need yet more complications tacked on top to support something
> as simple as lexical binding. Yet Pascal had lexical binding from the get-
> go, and managed it in a much simpler way.

A programming language is a tool. The goal is not to have the tool which 
is simple to make. The goal is not even to have the tool which is simple 
to use. The goal is to have a tool which is adequate for its job.