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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f92fbb4a0420dd57 X-Google-Attributes: gid103376,public From: stt@henning.camb.inmet.com (Tucker Taft) Subject: Re: some questions re. Ada/GNAT from a C++/GCC user Date: 1996/04/02 Message-ID: #1/1 X-Deja-AN: 145424833 sender: news@inmet.camb.inmet.com (USENET news) x-nntp-posting-host: henning.camb.inmet.com references: organization: Intermetrics, Inc. newsgroups: comp.lang.ada Date: 1996-04-02T00:00:00+00:00 List-Id: Bob Duff and Norm Cohen wrote: [lot's of reasonable stuff about good and bad verbosity] Be that as it may... I find the easiest way to deal with extra, seemingly unnecessary, levels of constructs is to "half" indent. E.g.: if A > 0 then declare B : Integer := A; begin -- This is my normal indent of 4 A := B * A; end; else A := 2; end if; Another alternative is to "merge" constructs, e.g.: if A > 0 then declare B : Integer := A; begin -- This is my normal indent of 4 A := B * A; end; else A := 2; end if; Neither of these win the beauty award, but somehow not having to indent so far makes the extra level of construct sufficiently less painful that the pain doesn't overwhelm the gain. In any case, if our biggest problem with Ada 95 is that it requires an explicit "declare" to introduce very local variables, I'm content... -Tucker Taft stt@inmet.com http://www.inmet.com/~stt/ Intermetrics, Inc. Cambridge, MA USA