From: Jeffrey R. Carter on
Nasser M. Abbasi wrote:
>
> Along the same thought, I like that in Ada one can easily define an
> array to start from 0 instead from 1.

Or 23, or Blue, or whatever is meaningful for the problem.

The idea in Ada is to model the problem in the SW, not translate the problem
into terms defined by the language.

--
Jeff Carter
"Nobody expects the Spanish Inquisition!"
Monty Python's Flying Circus
22
From: (see below) on
On 09/06/2010 03:58, in article hun01g$emp$1(a)speranza.aioe.org, "Nasser M.
Abbasi" <nma(a)12000.org> wrote:

> On 6/8/2010 6:06 PM, Gautier write-only wrote:
>
>> 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...
>>
>
> Along the same thought, I like that in Ada one can easily define an
> array to start from 0 instead from 1. Depending on the problem. This can
> make the coding much simpler. (less chance of making one-off error).
>
> In other languages, arrays starts from either 1 or 0.

Only in *bad* languages.

--
Bill Findlay
<surname><forename> chez blueyonder.co.uk


From: Jacob Sparre Andersen on
Robin wrote:

> Wondering, what are some of the uses for ada, what is it for,

Mostly for programming. ;-)

> why is it better than other languages.....this is.

I seem to be more efficient at programming in Ada mainly because the
language

- allows me better to express the problem I want to solve
- catches mistakes earlier in the development process

But Ada is not always my first choice for solving a problem. When I
solve system administration tasks, I often use Bash.

Greetings,

Jacob
--
"... and everybody hates the jews."
From: Ludovic Brenta on
Robin wrote on comp.lang.ada:
> Wondering, what are some of the uses for ada, what is it for, why is
> it better than other languages.....this is.

http://www.adaic.com/whyada/index.html

In a nutshell:

- you write fewer bugs.
- the few bugs you do write are easier to find.
- in your programs, you can say what you mean.
- Ada attracts better programmers.

--
Ludovic Brenta.
From: Dmitry A. Kazakov on
On Wed, 09 Jun 2010 09:21:07 +0200, Jacob Sparre Andersen wrote:

> But Ada is not always my first choice for solving a problem. When I
> solve system administration tasks, I often use Bash.

Huh, what about bash arrays. Aren't they just great? What about a variable
modified in the loop dealing with a pipe? Nice thing, lot of fun.
Processing double quotation marks in the bodies of strings. Just delicious!

If there were Ada interpreter for Linux I would never use bash. But even
without it, each time I write a script I must later admit, that it would be
better and *quicker* to use a full-blown Ada program instead.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de