From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:8dc4:: with SMTP id p187-v6mr384492iod.34.1541574137377; Tue, 06 Nov 2018 23:02:17 -0800 (PST) X-Received: by 2002:aca:50c4:: with SMTP id e187-v6mr15159oib.7.1541574137103; Tue, 06 Nov 2018 23:02:17 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!goblin1!goblin.stu.neva.ru!z5-v6no409186ite.0!news-out.google.com!n199-v6ni363itn.0!nntp.google.com!z5-v6no409185ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 6 Nov 2018 23:02:16 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=194.9.244.14; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 194.9.244.14 References: <5af3c4a0-5856-47ec-bb05-0ae9f9bb24ff@googlegroups.com> <98c7d0b5-2262-4246-bb4f-6dde1d59ff6b@googlegroups.com> <14fe0dc9-da23-4eac-a407-01198bfc7ae2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <05f9abae-3fc8-4d71-a12c-26b58a434a56@googlegroups.com> Subject: Re: Trivia: Ada packages are great! From: Maciej Sobczak Injection-Date: Wed, 07 Nov 2018 07:02:17 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54783 Date: 2018-11-06T23:02:16-08:00 List-Id: > But 'extension' through child package, present in the filename, is 'self = documenting' in Ada. C++ namespace can be anywhere regardless of file namin= g... often very confusing about what is tied to what. At directory level yo= u cannot figure out the design layout. In Ada you can get pretty much the w= hole picture just from that inspection. This is huge for reasoning. Except that it is not enforced by the language. It is a (still not obligato= ry!) convention used with the GNAT compiler, which is the convention that I= appreciate, but it is not the achievement of Ada as the language. I have s= een a relatively large Ada project (several thousand files), where for hist= orical reasons file names have been forced to be 8 characters[*], which obv= iously did not have anything to do with package names that they specified o= r implemented. Reasoning in such a mess is just impossible. [*] See the GNAT standard package files, too. Do you know the purpose of fi= le that has name a-tiinau.ads? Or s-atacco.ads? Can you figure out the hier= archy from such names? There are almost 700 such files in my installation, = all in a single directory. The fact that you can *voluntarily* keep order in your Ada files is great, = but remember that it is not Ada vs. C++ thing. There are enough good and ba= d examples in both. --=20 Maciej Sobczak * http://www.inspirel.com