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,3ccb707f4c91a5f2 X-Google-Attributes: gid103376,public From: Mike Stark Subject: Re: Java vs Ada 95 (Was Re: Once again, Ada absent from DoD SBIR solicitation) Date: 1996/10/16 Message-ID: <3264CCEB.AC0@gsfc.nasa.gov>#1/1 X-Deja-AN: 189873317 references: <325D7F9B.2A8B@gte.net> <326391B6.4B23@gsfc.nasa.gov> content-type: text/plain; charset=us-ascii organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0 (Macintosh; I; 68K) Date: 1996-10-16T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Mike Stark says > > "used in specifying member functions). Ada does not make the list of > exceptions raised by a subprogram part of the signature, let alone > requiring user-defined exceptions to be handled by the caller. This > alone is not a reason to say Java is better than Ada, but it is in- > accurate to say that there are no features where Java has the advantage." > > Yes, but of course this omission is quite deliberate in the Ada design. This > is certainly something that is different in the two languages. Ada quite > deliberately omitted this feature, because it potentially means that small > changes to a single low level procedure can percolate up to affect specs > all over the place! > > Any place that Ada and Java differ, someone will prefer the way that Ada > does it, and someone will prefer the way that Java did it. So you can't > say that one language or the other does or does not have advantages. Too > subjective! I agree that this is a subjective judgement. I think that it is a good feature for designing safe and secure systems. In Ada systems I've worked on, the exceptions raised were part of the commentary in a package spec, and that is quite workable. Mike