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 01:45:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: on package naming, should the word "_pkg" be part of it? Date: Fri, 12 Oct 2001 08:45:21 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: 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> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1002876321 4000 129.241.83.82 (12 Oct 2001 08:45:21 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Fri, 12 Oct 2001 08:45:21 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:14367 Date: 2001-10-12T08:45:21+00:00 List-Id: On Fri, 12 Oct 2001 02:29:44 GMT, Brian Rogoff wrote: >> Syntax like ++ -- *= etc is junk which only leads to error in your >> programs. > > No, that's not the problem at all. Adding syntax like +:= in Ada (influenced > by Icon not C here :) would not compromise readability or lead to errors. I > don't know why you think it would. Because reading: Counter +:= 1; Product *:= 5; is less clear than Counter := Counter + 1; Product := Product * 5; If you even use a decent editor (read Vim ;-) ) then you don't even have to type the Counter or Product variable the second time fully (completion shortcut) > You can even overload it to handle non-unit increment/decrement, and make > a generic so it works over discrete types. I happpen to think +:= reads a > little better, but really *very* little. Why make things more complex when there is no need for it :-) Preben