comp.lang.ada
 help / color / mirror / Atom feed
From: "Mike Silva" <mjsilva@jps.net>
Subject: Re: bitwise comparators
Date: 2000/01/17
Date: 2000-01-17T00:00:00+00:00	[thread overview]
Message-ID: <b1Ng4.521$dw3.22961@news.wenet.net> (raw)
In-Reply-To: 38834F16.FE5DE77F@hotmail.com


Alexander Van Hecke wrote in message <38834F16.FE5DE77F@hotmail.com>...
>>
>> here's an off-the-cuff list of Ada features I find "more powerful" than C
>> (my primary language):
>>
>> Strong typing
>> Multitasking
>> Generics
>> Tagged Types
>> Packages
>> Exceptions
>> Discriminants
>> Arrays indexed over arbitrary ranges, including enumerations
>> Much greater control over variable range and representation
>> Runtime error checking
>
>I'm not sure why you think these features are more _powerful_ than in C.
I'd
>label these features as more _advanced_.  C is an old language (allthough
I'm
>not sure at all about Ada), but nearly all those things you sum up are
>_possible_ in C, maybe they're not as easy as in Ada and require the
programmer
>to explicitly program them (which may take a lot of code), but they're
>possible.

I interpreted "powerful" to mean faster and/or easier.  It's true that
anything you can do in Ada you can do in C, given enough manually-coded
conditional statements (each of which, of course, is capable of being
miscoded).  Much of Ada's "power" comes from the availability of constructs
that more closely or naturally map to the problem universe, while more of
Ada's power comes from all the extra grunt work the compiler (and runtime)
do to ensure the integrity of the problem universe; code which would have to
be written manually to do the same job (but not as well) in C, assuming it
got written at all.
>
>Don't get me wrong, I'm not trying to make Ada look bad here, but I think
my
>previous statement stands : suppose you have no previous programming
experience
>whatsoever, I think that C is a lot easier to learn than Ada is...

Sometimes I wonder what language I'll teach my kids when they get old
enough.  It may very well be Ada, but it won't be C -- too low-level and
unstructured.  It's quite feasible to learn and use subsets of Ada and add
on as desired.

If you want Ada to be C you'll always be fighting it -- you need to make a
concious decision to "write Ada" in Ada.

Mike







  reply	other threads:[~2000-01-17  0:00 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-15  0:00 bitwise comparators Alexander Van Hecke
2000-01-15  0:00 ` David C. Hoos, Sr.
2000-01-16  0:00 ` Jeff Carter
2000-01-16  0:00 ` Bryce Bardin
2000-01-16  0:00 ` DuckE
2000-01-17  0:00   ` Alexander Van Hecke
2000-01-17  0:00     ` Jeff Carter
2000-01-17  0:00       ` Alexander Van Hecke
2000-01-17  0:00         ` David Starner
2000-01-17  0:00           ` Alexander Van Hecke
2000-01-17  0:00             ` David Starner
2000-01-18  0:00             ` Preben Randhol
2000-01-18  0:00             ` Fraser
2000-01-18  0:00               ` Bertrand Augereau
2000-01-19  0:00                 ` Ted Dennison
2000-01-19  0:00                   ` Marin D. Condic
2000-01-19  0:00                     ` Ted Dennison
2000-01-18  0:00           ` Ted Dennison
2000-01-17  0:00         ` Gautier
2000-01-17  0:00           ` Alexander Van Hecke
2000-01-17  0:00             ` David Starner
2000-01-18  0:00             ` Gautier
2000-01-18  0:00           ` Ted Dennison
2000-01-18  0:00         ` Jeff Carter
2000-01-18  0:00           ` Keith Thompson
2000-01-19  0:00             ` Gisle S�lensminde
2000-01-19  0:00             ` Ole-Hjalmar Kristensen
2000-01-19  0:00             ` Jeff Carter
2000-01-19  0:00               ` David Starner
2000-01-19  0:00               ` Keith Thompson
2000-01-18  0:00         ` Pascal Obry
2000-01-21  0:00         ` Ada vs. C/C++ (was re: bitwise something-or-other) Mark Lundquist
2000-01-21  0:00           ` Mark Lundquist
2000-01-24  0:00           ` Hyman Rosen
2000-01-17  0:00     ` bitwise comparators David C. Hoos, Sr.
2000-01-17  0:00     ` Mike Silva
2000-01-17  0:00       ` Brian Rogoff
2000-02-05  0:00         ` Ashley Deas Eachus
2000-02-05  0:00           ` Jeff Carter
2000-02-06  0:00           ` Andy
2000-02-07  0:00           ` Brian Rogoff
2000-02-09  0:00             ` Robert Iredell Eachus
2000-01-17  0:00       ` Alexander Van Hecke
2000-01-17  0:00         ` Mike Silva [this message]
2000-01-18  0:00           ` Charles Hixson
2000-01-17  0:00         ` David Starner
2000-01-17  0:00         ` Gautier
2000-01-17  0:00     ` tmoran
2000-01-17  0:00     ` Matthew Heaney
2000-01-17  0:00     ` Gautier
2000-01-18  0:00       ` Keith Thompson
2000-01-19  0:00         ` Ole-Hjalmar Kristensen
2000-01-18  0:00     ` DuckE
2000-01-18  0:00     ` Ted Dennison
2000-01-16  0:00 ` Matthew Heaney
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox