Liste des Groupes | Revenir à cl c |
On Sat, 4 May 2024 20:41:42 +0300, Paavo Helde wrote: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.
On 04.05.2024 01:20, Lawrence D'Oliveiro wrote:Interesting, isn’t it? You mention all the complications of C++, and how
>On Fri, 3 May 2024 18:01:02 +0300, Michael S wrote:C++ already has functions nested in namespaces, namespaces nested in
>For C, I agree, mostly because C has no nested functions.>
GCC implements nested functions in the C compiler. Though oddly, not in
C++.
>
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.
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.
Les messages affichés proviennent d'usenet.