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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7ec96df455443b0a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!d8g2000yqf.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: what are some of the uses for ada? Date: Tue, 8 Jun 2010 18:06:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6ceb6f55-3d50-403d-8373-13401d1b26fd@d8g2000yqf.googlegroups.com> References: <8a40983e-59b4-4622-94fa-cd39146060bc@d37g2000yqm.googlegroups.com> NNTP-Posting-Host: 85.1.174.227 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1276045604 20845 127.0.0.1 (9 Jun 2010 01:06:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 Jun 2010 01:06:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d8g2000yqf.googlegroups.com; posting-host=85.1.174.227; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 SeaMonkey/2.0.4,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:11484 Date: 2010-06-08T18:06:44-07:00 List-Id: Robin: > Wondering, what are some of the uses for ada, Here are some: http://www.seas.gwu.edu/~mfeldman/ada-project-summary.html > what is it for, Anything - from very serious things, to things not serious at all! > why is it better than other languages.....this is. Is it ? Perhaps. For me it is the sum of many details which in total make a big difference. Generally, it is made to catch your errors the earliest possible. You also notice potential errors more often. It begins with the fact that you have: ... end if; end loop; end if; ... and not brackets. You even don't write some classic "banana skins" in the first place: steps in the "for" instruction are only 1 or -1. Ada offers plenty of attributes which make life easier as well: you'll write "for i in x'Range loop" rather than having to pass a 'n' integer and putting the wrong upper bound on your loop. And so on... Then, features are fairly orthogonal. - you are not forced to use references and pointers if you don't need them. If you want, you can make a full object-oriented GUI without any dynamic allocation on GUI objects. - the type system is not bound to the modularity (package /= class) - you can make "a:= b" whatever the complexity of a (and b's) type - you write "if a = b then..." to compare two integers, or two matrices, or anything else as well: for instance, the whole contents of a dialog box before and after user changes, to check if there is any. - you have expressions for every type Then, the nesting is very powerful in Ada. It's definitely not a "flat" language. You can have a package inside a function you need it. Define a local procedure inside a loop. And so on. _________________________________________________________ Gautier's Ada programming -- http://sf.net/users/gdemont/ NB: For a direct answer, e-mail address on the following web site: http://www.fechtenafz.ethz.ch/wm_email.htm