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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7eaf9f2597de2259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-12 19:13:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!newsfeed.cwix.com!sjc-peer.news.verio.net!news.verio.net!sea-read.news.verio.net.POSTED!not-for-mail Newsgroups: comp.lang.ada From: Brian Rogoff Subject: Re: on package naming, should the word "_pkg" be part of it? In-Reply-To: <9q7n0a02mu2@drn.newsguy.com> Message-ID: <20011012190126.T27399-100000@shell5.ba.best.com> References: <9q25ec0248o@drn.newsguy.com> <9q421v0bbg@drn.newsguy.com> <9q4a37$npd$1@nh.pace.co.uk> <9q4e59018lm@drn.newsguy.com> <20011011191946.K11745-100000@shell5.ba.best.com> <9q7fr3$7hu2@news.cis.okstate.edu> <9q7n0a02mu2@drn.newsguy.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Date: Sat, 13 Oct 2001 02:13:41 GMT NNTP-Posting-Host: 206.184.139.136 X-Complaints-To: abuse@verio.net X-Trace: sea-read.news.verio.net 1002939221 206.184.139.136 (Sat, 13 Oct 2001 02:13:41 GMT) NNTP-Posting-Date: Sat, 13 Oct 2001 02:13:41 GMT Organization: Verio Xref: archiver1.google.com comp.lang.ada:14443 Date: 2001-10-13T02:13:41+00:00 List-Id: On 12 Oct 2001, it was written: > In article <9q7fr3$7hu2@news.cis.okstate.edu>, David says... > >? Clarity is one of the real arguments for this syntax, so that you > >don't make a mistake retyping the element on the left in these > >situations, and so it's easy to tell on reading that the left part is the > >same as the right part. > > exactly. > > I do find that reading 'i++' is clearer than 'i := i +1', specially when > "i" is a complicated expression. I agree, but as I said before if this really, really bothers you, you can define an Increment (or Incr :) procedure and similar Decrement, and Multiply procedures to ameliorate this quite a bit. No, it's not quite as nice as a shorthand syntax, but in combination with a few other Ada features (overloading, renames, generics) it isn't bad. If you haven't done so, you may want to define a generic package over dicrete types that does what you want. > Ada programmers think that more words makes things clearer, but too > much words makes things less clear actually. I agree here too, but I think Ada is closer to being "right" than C++, which doesn't even do a great job representing the "terser is mostly better" philosophy. However, its really too late to change Ada (or C++ for that matter) so if you're really interested in using Ada (if not, you're wasting your time in this ng) its wise to learn how to do things in Ada. -- Brian