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,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: "Mike Silva" Subject: Re: bitwise comparators Date: 2000/01/17 Message-ID: #1/1 X-Deja-AN: 573968354 References: <3880D375.7E363123@hotmail.com> <38829638.0@news.pacifier.com> <3882FC1C.2BA8C959@hotmail.com> <38834F16.FE5DE77F@hotmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: news@wenet.net X-Trace: news.wenet.net 948149447 206.169.137.33 (Mon, 17 Jan 2000 14:50:47 PST) NNTP-Posting-Date: Mon, 17 Jan 2000 14:50:47 PST Newsgroups: comp.lang.ada Date: 2000-01-17T00:00:00+00:00 List-Id: 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