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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9e7db243dfa070d7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Do people who use Ada also use ocaml or F#? Date: Sun, 31 Oct 2010 13:51:16 +0100 Organization: Adalog Message-ID: References: <1mjd3udlxgzp3$.1abzmwnslu9ym$.dlg@40tude.net> <1e1y89ly171$.91bu2wu1e2rk$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 31 Oct 2010 12:51:23 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="O1RkH+WVNUV47UyqsXe2BA"; logging-data="17368"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nhweZ5NME74TGe6wz7Mz9" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: Cancel-Lock: sha1:uDXKzGva2BqN9mZfAs+yLzeB69o= Xref: g2news2.google.com comp.lang.ada:16010 Date: 2010-10-31T13:51:16+01:00 List-Id: Le 31/10/2010 12:17, Dmitry A. Kazakov a �crit : >>> As for reading, I completely disagree. There is nothing more unreadable >>> than cut'n'pasted code, which is the only alternative to reuse. >> Ouch! You just forget reusable components! > > Do you mean reusable components unreadable, or, maybe, that these > components are used as-is? Yes, reusable components, used as-is. I objected to your mention that the only alternative to inheritance for reuse is cut-and-paste. > Maybe two-tier "assemble" design works for small throw-away projects, but > in Ada I would rather expect components combined into new components, i.e. > extended, if not functionally, then by aggregation. > You can build new components that use other components, hence you can call it aggregation, but this is hidden in the body, so nobody cares, it's not visible; unlike inheritance where the whole dependency has to be visible. That's why I claim that components are superior, because you never need to be aware of more than one level. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a d�m�nag� / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00