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 Path: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Your wish list for Ada 202X Date: Wed, 23 Apr 2014 23:29:51 +0200 Organization: Home - http://www.obry.net Message-ID: <1398288591.4400.104.camel@pascal.home.net> References: <7f1c01c5-3563-4b94-9831-152dbbf2ecdc@googlegroups.com> <9f156351-e3d0-4d86-b816-1d5e09ee69da@googlegroups.com> <4e3a0e68-1514-4255-9c76-ef8758991ded@googlegroups.com> Reply-To: pascal@obry.net NNTP-Posting-Host: Dwtpzxwu07hTXY91gbL6pw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Complaints-To: abuse@aioe.org X-Mailer: Evolution 3.8.5-2+b3 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 2051 Xref: number.nntp.dca.giganews.com comp.lang.ada:186049 Date: 2014-04-23T23:29:51+02:00 List-Id: Le mercredi 23 avril 2014 =C3=A0 10:51 -0700, bj=C3=B6rn lundin a =C3=A9cri= t :=20 > Calling then SIEMENS_S5_NO_ERROR or CRANE_NO_ERROR would put the ambiguit= y away, > but the code would look awful. I fully agree. I'm also in the "no use" clan. Far better to declare the constant NO_ERROR and the packages SIEMENS_S5 and CRANE. Then CRANE_NO_ERROR or CRANE.NO_ERROR does not have more characters and avoid to have a extended visibility. I've never understood why people just put use everywhere and most often at the top of the unit. This gives visibility to the whole unit plus all the children. It is then harder to refactor the code as it is quite difficult to see what is actually used and where. --=20 Pascal Obry / Magny Les Hameaux (78) The best way to travel is by means of imagination http://v2p.fr.eu.org http://www.obry.net gpg --keyserver keys.gnupg.net --recv-key F949BD3B