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-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!news.tu-darmstadt.de!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) 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: Date: Thu, 29 Oct 2009 18:47:23 +0100 Message-ID: <44gvkeieuc4f$.1x1dgewtxi3ty$.dlg@40tude.net> NNTP-Posting-Date: 29 Oct 2009 18:47:19 CET NNTP-Posting-Host: 09ab57b0.newsspool4.arcor-online.net X-Trace: DXC=T59n=XgB3TbEB;5>eE0T7m4IUK?kNZ@k[6LHn;2LCVnCOgUkn_?_YoPd616iaF;3kL>YVL1J4ZQi X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8844 Date: 2009-10-29T18:47:19+01:00 List-Id: On Thu, 29 Oct 2009 10:11:56 -0700 (PDT), Hibou57 (Yannick Duch�ne) wrote: > I do not mean I'm surprised this convention is working fine with the > Ada standard packages set, I know there is probably a reason which > explains why it works in this one case : types defined by the Ada > standard, all have names which express somethings very abstract. As an > example, Integer would unlikely be the name of any variable, because > it is too much abstract to be the name of the concrete instance of > anything. But with at a greater level of specialization, things turns > to show another face : types tends to have names which are more > subject to conflict with object / instance names, because as they are > more specialized, they have much more concrete meaning and semantic, > and there come the conflicts potential. A great observation. > Indeed, the word Map, is more likely to be the name of an object > instance as well as the name of a type, than Integer is. No, Map is abstract enough, no less than Integer. Look at the operations +, -, *, / the Ada designers too had a trouble with names. They use Left, Right as the names, not very convincing. Mathematicians keep on using x, y. As for Map I used Container to name an instance of in its operations. > That's why I'm wondering if in the Ada area, people really use or not, > the convention without a suffix. I can guess it works find with Ada > standard stuff, for the reasons introduced just before, but it is more > difficult to me to imagine how this same convention can practicably > works as much fine with larger projects dealing with much more > concrete types. It is difficult. Sometimes I give up and add "_Type", but I always feel myself guilty if I do. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de