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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-07 04:24:20 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: 7 Sep 2003 04:24:19 -0700 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1062933860 31832 127.0.0.1 (7 Sep 2003 11:24:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 Sep 2003 11:24:20 GMT Xref: archiver1.google.com comp.lang.ada:42231 Date: 2003-09-07T11:24:20+00:00 List-Id: Hyman Rosen wrote in message news:... > Russ wrote: > > First of all, Java forces everything into the "object-oriented" mold > > whether it fits or not. > > Not true. It's easy enough to make class methods be static, and then > you've got the equivalent of a package with variables and procedures, > if that's what you want. You can also declare your class methods to be > final and accomplish about the same thing. So there's no real forcing > of OOness. OK, help me out here. I confess that I have never done any real programming in Java. My main exposure to it was a class at Stanford that I audited about six years ago. My formal training is in aerospace engineering, not programming (and I'm very glad about that, by the way). Get the picture? OK, now that I've clarified that, here's a simple, straightforward question for you. I could probably look this up myself, but I'm lazy. Suppose I want to take the sine of an angle in Java. Can I somehow set things up so that I can simply write "sin(x)", or must I write something like "math.sin(x)"? The former is acceptable to me, but the latter is not. > > it has no separately compiled specification files > > That can be programmed by using interfaces. Write your specifications > as interface classes, then write the implementations as implementing > the interfaces. Works fine. I remember Java interfaces only vaguely. Are you telling me that they do everything that Ada spec files do, and that they do it every bit as well, with no disadvantages? If so, then I am impressed. But that's a big "if". I would certainly be interested in other opinions here too.