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-Thread: a07f3367d7,7c7fba57c4978feb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Why no named case statements? Date: Sun, 06 Sep 2009 08:44:46 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <5233a224-07c1-4a7b-906e-b4cb8e193c85@y42g2000yqb.googlegroups.com> <1doe3xrcrqyeh.101b6gamg91bj.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1252241086 11284 192.74.137.71 (6 Sep 2009 12:44:46 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 6 Sep 2009 12:44:46 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:UOy5myrfSVC3HLKSn3R7F4sHdFM= Xref: g2news2.google.com comp.lang.ada:8195 Date: 2009-09-06T08:44:46-04:00 List-Id: "Dmitry A. Kazakov" writes: > Ada has labels: > > <> > case Some_Variable is > ... > end case; > > <> > if Whatever then > ... > end if: I prefer comments: -- Decide this. case Some_Variable is ... end case; -- Decide that. if Whatever then ... end if: To me, a label is a warning that gotos are lurking around the place. - Bob