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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92c39a3be0a7f17d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-13 07:21:16 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kcline@optelnow.net (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: code partitioning (was: Future with Ada) Date: 13 Mar 2002 07:21:16 -0800 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 198.23.5.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016032876 532 127.0.0.1 (13 Mar 2002 15:21:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Mar 2002 15:21:16 GMT Xref: archiver1.google.com comp.lang.ada:21160 Date: 2002-03-13T15:21:16+00:00 List-Id: Kilgallen@SpamCop.net (Larry Kilgallen) wrote in message news:... > In article , Christoph Grein writes: > >> From: Wes Groleau > >> case Animal is > snip > >> end case (Animal); -- yet another way of > >> -- naming a case statement > > > > Nonono > > > > case [expression] is > > ... > > end case; > > > > So how about > > > > case Some*weird*and/long+expression is > > ... > > end case Some*weird*and/long+expression; > > I prefer: > > case Some*weird*and/long+expression is > ... > end case; -- Some*weird*and/long+expression > > since it requires no vendor action and I have resigned myself to > the fact that successful programming can never be entirely devoid > of self-discipline. > > I have found that so long as _every_ end case has such a comment, > I am unlikely to get them interchanged. I prefer meaningful_name := some * weird * and / long + expression; case meaningful_name is end case; -- meaningful_name Introducing local variables can improve readability.