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,5f764f1f7822ab9c X-Google-Attributes: gid103376,public From: "Samuel T. Harris" Subject: Re: Top 10 Language Constructs (Ada) Date: 2000/07/14 Message-ID: <396F6C9D.692FD8C8@Raytheon.com>#1/1 X-Deja-AN: 646450971 Content-Transfer-Encoding: 7bit References: <8kmjja$l5h$1@pollux.ip-plus.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Raytheon Aerospace Engineering Services Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-07-14T00:00:00+00:00 List-Id: Bruno Gustavs wrote: > > What do you think are the top ten language constructs in Ada? > Please don't answer in terms of OO concepts, but try to restrict > yourself to those statements you really use to cope with your > daily work. > > Curious why I'm asking this question? In spite of all requirements > engineering effort we know exactly *how* to solve problems > with computer languages but know fairly, *what* we're doing > during this process. > > Regards > Bruno Gustavs My number one is block statements. Being able to arbitrarily introduce a new declarative region has been invaluable to me in avoiding numerous kinds of coding errors. Having to place all working variables within the subprogram declarative region can cause many kinds of problems. The more complex the subprogram the greater the need. There are also many situations where one simply does not have enough information to satify a variable declaration (e.g. string constraints) until later in the algorithm. The localization of the scope of temporary variables is a very attractive style of coding for me. The different logic paths within the algorithm need only concern themselves with just the variables each needs. Less clutter, less fuss, less muss! -- Samuel T. Harris, Principal Engineer Raytheon, Aerospace Engineering Services "If you can make it, We can fake it!"