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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,96ae138aab3beb03 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-03 16:57:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Localized Variable Declaration Date: Mon, 3 Jun 2002 09:59:16 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CF77998.9040806@yahoo.com> <3CF77CDA.3090805@yahoo.com> <3CF78D3D.3030400@yahoo.com> <3CF79DFC.50613FAF@san.rr.com> <5ee5b646.0206020720.6b91978b@posting.google.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1023112757 1184 136.170.200.133 (3 Jun 2002 13:59:17 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 3 Jun 2002 13:59:17 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:25282 Date: 2002-06-03T13:59:17+00:00 List-Id: C and C++ programmers tend to write things without spaces or underscores, so you can tell their origin when you see Ada code that looks like: SomeProcedureName(X,Y,Z); Ada programmers make more frequent use of spaces and underscores, so it is much more common to see: Some_Procedure_Name (X, Y, Z); To a large extent, it is a matter of taste, but you can use the ARM and Ada Quality & Style as good guidelines. In general, I suggest this: When working on a program someone else wrote, stick to whatever style they used. When working on a group project, get everyone to agree to some style and stick to it - but avoid nit-picking arguments over every single comma or space. When working strictly on your own, use any style you like - but be consistent. There are various tools that can be used to format Ada code and their use will bring you a certain consistency, but I've never found them to be a 100% substitute for hand-formatting and I've not encountered one that ever formatted things the way *I* would do it. :-) (Well, except for one I wrote a bunch of years ago for Ada83 - and even then, my style has evolved since then & it doesn't work for Ada95. :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Michael Bode" wrote in message news:m37klhkk02.fsf@jupiter.solar.system... > > Could someone please help a poor Ada beginner and tell me when to > leave a blank between a function name and its parameter list and when > not? I personally find the above Put_Line("write two number"); more > readable than Float := Float (a) * Float (b) * 42.42; because I think > of a function and its parameters as a unity, but I've seen the blanks > in textbooks quite often. OTHO "Ada Quality and Style" favors the > Put_Line(...) > > PS: No Holy War intended.