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: 103376,c733905936c6b6b0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.233.170 with SMTP id tx10mr10823288pbc.0.1334648140220; Tue, 17 Apr 2012 00:35:40 -0700 (PDT) Path: r9ni65766pbh.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newsfeed.utanet.at!newsfeed.tele2net.at!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: [OT] interesting reason why a language is considered good Date: Tue, 17 Apr 2012 09:34:49 +0200 Organization: cbb software GmbH Message-ID: References: <8603135.951.1334573001928.JavaMail.geo-discussion-forums@vbbdy9> <4f8c06f5$0$7617$9b4e6d93@newsspool1.arcor-online.net> <14veb9cpamoda.ck9fbsd5m9m$.dlg@40tude.net> <4f8c3431$0$7627$9b4e6d93@newsspool1.arcor-online.net> <4f8c52b2$0$7627$9b4e6d93@newsspool1.arcor-online.net> <9s7d2eufbh6f$.1ivcyxfztaq42$.dlg@40tude.net> <4f8c93a0$0$6638$9b4e6d93@newsspool2.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-04-17T09:34:49+02:00 List-Id: On Mon, 16 Apr 2012 23:48:15 +0200, Georg Bauhaus wrote: > On 16.04.12 20:00, Dmitry A. Kazakov wrote: > >> You asked for examples of programs allegedly suffering from generality of >> the word "when", here is one: > > Actually I asked for programs that profit from generality of words > like "when" used as identifiers. If you want to go that way, then I will ask you to show such programs for "why", "whose" etc. It always works (does not, actually) in both ways. >> case Alignment is >> when Left => ...; >> when Right => ...; >> when Middle => ...; >> end case; > > What's the pain? Yes, what pain? Why this program didn't suffered from using the dreadful "when"? > I have tried to explain that generic identifiers do not inform about > specific things. And I answered that this does not make them *reserved*. >>> Simon Wright has recently shown a nice way how to mend the situation >>> with X and Y for surface orientation, using Ada 2012 (substituting >>> Northings and Eastings in the profile, IIRC). >> >> I wonder what Australians would say about that. > > You don't mean that Australian drivers (or pilots) do not know how > to head North? I mean that "North" is probably not the best replacement for "vertical." And the latter is probably not same as "Y." It is sometimes "Z." The choice of names is always a difficult one, which also depends on the context of use, as Randy has pointed out. >> See. In other words, there are other reasons why "when" is reserved. >> Exactly my point. > > Not the point in question, I think. The point in question is what happens > when even words like "when", i.e. even those that happen to be reserved > now, do loose that special status. See, it has nothing to do with the meaning of a word. The only reason why "when" should possibly be reserved is on syntactic grounds. That should be considered from case to case. Specifically "when" could be allowed, I guess. >>>> Statistically irrelevant. >>> >>> I know I am not statistically relevant. Yet, for actual statistics, >>> if you see how programs are written in the low budget industry >>> that might change your mind. >> >> You mean that low budget industry has no access to an editor capable to >> colourise Ada source code? Come on, gedit, AdaGide, GPS are free! > > A graphical terminal on site? Wow! I am used to SSH. http://sourceforge.net/projects/xming + putty -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de