comp.lang.ada
 help / color / mirror / Atom feed
From: Christoph Grein <christoph.grein@eurocopter.com>
Subject: Re: code partitioning (was: Future with Ada)
Date: Thu, 14 Mar 2002 06:41:54 +0100 (MET)
Date: 2002-03-14T06:41:54+01:00	[thread overview]
Message-ID: <mailman.1016084642.17231.comp.lang.ada@ada.eu.org> (raw)

> I prefer
> 
>     meaningful_name := some * weird * and / long + expression;
>     case meaningful_name is
>     end case; -- meaningful_name
> 
> Introducing local variables can improve readability.

This is not the point. Of course this is sensible. My proper point against this proposal is:

Since a case statement has an expression syntactically, the expression would 
have to be repeated at the end

case expression is
  ..
end case expression;

and this is against the spirit of repeating only a short identifier (the 
defining_designator etc.) at the end.

Thus the proper way would be a {case_}statement_identifier:

[{case_}statement_identifier:]
case expression is
  ...
end case [{case_}identifier];

[The curly braces stand here for what is printed in italics in the RM.]

This is the only form I would like to see as a future syntax enhancement. We 
already have this for loops and blocks, so why not for ifs and cases (and 
selects).

We do not need weird new syntax rules.




             reply	other threads:[~2002-03-14  5:41 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-14  5:41 Christoph Grein [this message]
2002-03-16 15:46 ` code partitioning (was: Future with Ada) Jacob Sparre Andersen
2002-03-17 13:19 ` Nick Williams
2002-03-17 19:41   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2002-03-13  6:09 Christoph Grein
2002-03-13 11:50 ` Larry Kilgallen
2002-03-13 14:15   ` Wes Groleau
2002-03-13 15:21   ` Kevin Cline
2002-03-13 15:24   ` Pascal Obry
2002-03-13 14:11 ` Wes Groleau
2001-11-09 17:59 Future with Ada Michal Nowak
2002-02-26  4:12 ` Jim Rogers
2002-02-27 17:51   ` Warren W. Gay VE3WWG
2002-02-28 17:45     ` Michal Nowak
2002-02-28 18:53       ` Hyman Rosen
2002-03-01 17:26         ` Jeffrey Carter
2002-03-03  8:26           ` Hyman Rosen
2002-03-03 17:47             ` Chad R. Meiners
2002-03-04 16:30               ` Hyman Rosen
2002-03-05  1:41                 ` Richard Riehle
2002-03-05 21:35                   ` Wes Groleau
2002-03-05 22:04                     ` Marin David Condic
2002-03-06 16:36                       ` Georg Bauhaus
2002-03-06 17:27                         ` Marin David Condic
2002-03-07 16:04                           ` Georg Bauhaus
2002-03-07 16:42                             ` Marin David Condic
2002-03-11 20:02                               ` Wes Groleau
2002-03-11 23:56                                 ` Marin David Condic
2002-03-12 16:47                                   ` code partitioning (was: Future with Ada) Wes Groleau
2002-03-12 17:56                                     ` Marin David Condic
2002-03-14 15:27                                       ` John R. Strohm
2002-03-15 14:15                                         ` Ted Dennison
2002-03-16 10:37                                           ` Kevin Cline
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox