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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!y42g2000yqb.googlegroups.com!not-for-mail From: Britt Snodgrass Newsgroups: comp.lang.ada Subject: Why no named case statements? Date: Fri, 4 Sep 2009 16:06:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5233a224-07c1-4a7b-906e-b4cb8e193c85@y42g2000yqb.googlegroups.com> NNTP-Posting-Host: 205.175.225.24 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1252105573 20367 127.0.0.1 (4 Sep 2009 23:06:13 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Sep 2009 23:06:13 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y42g2000yqb.googlegroups.com; posting-host=205.175.225.24; posting-account=rdRzuwoAAAAyW3CSBhs_xgfCUJSc1aNt User-Agent: G2/1.0 X-HTTP-Via: 1.1 secproxy04.rockwellcollins.com:8080 (IWSS) X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8170 Date: 2009-09-04T16:06:12-07:00 List-Id: Ada allows optional names for loops and declare blocks but not for case or if statetements. Why not, since these are also multi-line statements that terminate with an 'end" keyword? I sometimes use loop names to clearly indicate the purpose of the loop and have wished I could do the same for case statements, e.g., Decide_This: case Some_Variable is ... end case Decide_This; or similarly for long if statements: Decide_That: if Whatever then ... end if Decide_That: Such names could also be used in the outline view of an IDE like Eclipse to support quick location of the named entity. I suppose there was some rationale so I'm curious what it was. - Britt