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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9e7db243dfa070d7 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!takemy.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Do people who use Ada also use ocaml or F#? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1mjd3udlxgzp3$.1abzmwnslu9ym$.dlg@40tude.net> <1e1y89ly171$.91bu2wu1e2rk$.dlg@40tude.net> Date: Sun, 31 Oct 2010 16:07:10 +0100 Message-ID: NNTP-Posting-Date: 31 Oct 2010 16:07:11 CET NNTP-Posting-Host: c0097465.newsspool2.arcor-online.net X-Trace: DXC=O On Sun, 31 Oct 2010 13:51:16 +0100, J-P. Rosen wrote: > Le 31/10/2010 12:17, Dmitry A. Kazakov a �crit : >> 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. But reusable components are visible as well, e.g. a list [component 1] of arrays [component 2] of something [component 3]. > That's why I claim that components are superior, because you never need > to be aware of more than one level. Flatten hierarchies are not always good. Example: String vs. Unbounded_String vs. Bounded string x single vs. wide vs. wide_wide = geometric explosion of packages all over Ada standard library. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de