From: Gautier write-only <gautier_niouzes@hotmail.com>
Subject: Re: what are some of the uses for ada?
Date: Tue, 8 Jun 2010 18:06:44 -0700 (PDT)
Date: 2010-06-08T18:06:44-07:00 [thread overview]
Message-ID: <6ceb6f55-3d50-403d-8373-13401d1b26fd@d8g2000yqf.googlegroups.com> (raw)
In-Reply-To: 8a40983e-59b4-4622-94fa-cd39146060bc@d37g2000yqm.googlegroups.com
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
next prev parent reply other threads:[~2010-06-09 1:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 19:43 what are some of the uses for ada? Robin
2010-06-08 21:04 ` Jeffrey R. Carter
2010-06-08 21:56 ` nobody
2010-06-12 9:40 ` Robin
2010-06-09 1:06 ` Gautier write-only [this message]
2010-06-09 2:58 ` Nasser M. Abbasi
2010-06-09 4:10 ` Jeffrey R. Carter
2010-06-09 4:37 ` (see below)
2010-06-09 7:21 ` What are some of the uses for Ada? Jacob Sparre Andersen
2010-06-09 7:30 ` Dmitry A. Kazakov
2010-06-09 7:38 ` Ludovic Brenta
2010-06-09 7:41 ` J-P. Rosen
2010-06-09 7:25 ` what are some of the uses for ada? Ludovic Brenta
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox