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: bobduff@world.std.com (Robert A Duff) Subject: Re: some questions re. Ada/GNAT from a C++/GCC user Date: 1996/04/01 Message-ID: #1/1 X-Deja-AN: 145245879 references: <4jhe1v$m0g@dayuc.dayton.saic.com> <4xn34w5i73.fsf@leibniz.enst-bretagne.fr> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-04-01T00:00:00+00:00 List-Id: In article <4xn34w5i73.fsf@leibniz.enst-bretagne.fr>, Laurent Guerby wrote: > If you follow the GNU Coding Standard, here is how you have to >declare (indent) an inner block (loop, if ...) : > > { > int local; > > foo (local); > bar (global); > } > > declare > Local : Integer; > begin > Foo (Local); > Bar (Global); > end; > > Hey, the number of line is the same ! No, the number of lines is not the same. In C++, the curly braces are usually there *anyway*, because you're inside a loop or an if statement or something. >...Cool isn't it ;-). Ok, you >type more charaters. Shrug. I don't care about the number of keystrokes -- Emacs types it all automatically, anyway. I was complaining that the extra verbosity reduces readability. Verbosity is good when it adds useful information to the code. It's bad when it merely clutters the code. - Bob