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.236.170 with SMTP id uv10mr1629334pbc.4.1334732908036; Wed, 18 Apr 2012 00:08:28 -0700 (PDT) Path: r9ni69510pbh.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!news.albasani.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: [OT] interesting reason why a language is considered good Date: Wed, 18 Apr 2012 09:10:00 +0200 Organization: Bauhaus-Universitaet Weimar 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> <4f8d1fdf$0$6638$9b4e6d93@newsspool2.arcor-online.net> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 X-Trace: tigger.scc.uni-weimar.de 1334732907 9781 141.54.178.228 (18 Apr 2012 07:08:27 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Wed, 18 Apr 2012 07:08:27 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII Date: 2012-04-18T09:10:00+02:00 List-Id: On Tue, 17 Apr 2012, Randy Brukardt wrote: > I don't care that much about "fixing" this "problem". In particular, "when" > is just an example. And it is one of the words that would be a major problem > if not reserved (you really need reserved words to delinate between parts of > major syntax structures, such as the limbs of a case statement). So I don't > see a future in which "when" would not be reserved. One solution could be introducing some limited form of case sensitivity: Making "when" and "WHEN" reserved words (with exactly the same syntactical meaning) while treating any mixed-case form, such as "When" or "WhEn" as identifiers, without differentiating between "When" and "WhEn". That would not make parsing any more difficult -- you would probably just have to tweak the lexer. And I have yet so see some Ada code where keywords are written in mixed case. -- ---- Stefan.Lucks (at) uni-weimar.de, University of Weimar, Germany ---- ------ I love the taste of Cryptanalysis in the morning! ------