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.69 with SMTP id tu5mr9616376pbc.6.1334581613834; Mon, 16 Apr 2012 06:06:53 -0700 (PDT) Path: r9ni62879pbh.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!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: Mon, 16 Apr 2012 15:06:02 +0200 Organization: cbb software GmbH Message-ID: <14veb9cpamoda.ck9fbsd5m9m$.dlg@40tude.net> References: <8603135.951.1334573001928.JavaMail.geo-discussion-forums@vbbdy9> <4f8c06f5$0$7617$9b4e6d93@newsspool1.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-16T15:06:02+02:00 List-Id: On Mon, 16 Apr 2012 13:48:04 +0200, Georg Bauhaus wrote: > On 16.04.12 12:43, Marius Amado-Alves wrote: >> Love OT threads in this clever forum:-) >> >> Actually there is a bit of thruth in the absurd no keyword thing: >> *many* keywords can get in the way of naming identifiers. Ada, for one, >> has a bit too many keywords, with some good identifier candidates (when, >> others...) > > "when" and "others" are general abstractions. What kind > of programs will in effect be about general abstractions? The kind of programs in Ada language, which uses exactly these words. Your argument is bogus. If a reserved word is good for the language then it is good for a program in that language. Furthermore if "when" is bad, then "what", "who" etc should be too. Yet, they are not reserved. The purpose of words being reserved has nothing to do with words. It does 1) with readability, to clearly separate identifiers from other syntactic tokens in order to improve readability. 2) With syntax issues, to make grammar less ambiguous for the parser. The reason #1 does not stand anymore because programs are read in IDEs. It was different in 70s, the era of punched cards and typewriters. The reason #2 is still valid, but it does not require that huge amount of reserved words Ada has, maybe only a half of them or less. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de