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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Why .ads as well as .adb? Date: Wed, 05 Jun 2019 02:28:57 -0700 Organization: A noiseless patient Spider Message-ID: <87woi0xtwm.fsf@nightsong.com> References: <28facad3-c55f-4ef2-8ef8-004925b7d1f1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="9fcc3b8d530abb060d83d90e3ac4d672"; logging-data="11684"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fvXd+ChAoUeBiYntsljyG" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:2Bkqk7t63d6Q/UxUzxkYq2Oeq4I= sha1:nqUOlSHlcxI45r0zcjvaUTbuC3w= Xref: reader01.eternal-september.org comp.lang.ada:56482 Date: 2019-06-05T02:28:57-07:00 List-Id: "J-P. Rosen" writes: > Yes, Ada favors readability over writability. I find when trying to study a codebase, having the code spread across too many files seriously impairs readability. That problem is worst with Java, which puts each class (even small ones) in a separate file. ML also does have a separate specification languate (the "module language") and implementation language, I mean really, not like the crappy .h system of C++. But I think it is ok (i.e. acceptable though not universal practice in ML) to put both the interface spec and the implementation in the same file. I don't see what is wrong with the idea of doing the same thing in Ada.