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=0.1 required=5.0 tests=BAYES_05,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f868292008c639ce X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: Java vs. Ada - strings (was: C vs. Ada - strings) Date: 2000/06/05 Message-ID: <393BB65D.7891F819@quadruscorp.com>#1/1 X-Deja-AN: 631289145 Content-Transfer-Encoding: 7bit References: <390F0D93.F835FAD9@ftw.rsc.raytheon.com> <8en5o9$ihe$1@nnrp1.deja.com> <8eonos$e70$1@wanadoo.fr> <1fIU4.4668$Rx3.250161@typhoon.nyroc.rr.com> <3924B730.AFB52C1C@acenet.com.au> <39394E0B.75BD479C@telepath.com> <8hgb3m$bs$1@nnrp1.deja.com> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 5 Jun 2000 14:22:55 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-06-05T14:22:55+00:00 List-Id: Ted Dennison wrote: > You're starting to get at my point here. Most of the "Ada's support for > XXX sucks" folks come from the perspective of trying to use techniques > designed around the features (and failings) of another language in Ada, > rather than from a sober analysis of the full benefits and drawbacks of > the supporting Ada features. If I were a betting man, I'd wager that > this approach occured to you because you are used to using this > (unusual) construct from a lanugage that makes it easy, and it would not > have occurred at all in the code of a "native" Ada person. > This is exactly the situation when you watch a native C programmer try to null terminate Ada strings and complain that there is no support in the language for null terminated string processing. They are used to working this way in C and are trying to translate it directly into Ada when The Ada Way is to use slices and attributes. Its not that the language *can't* do the job. Its that the language won't do it with the exact same idiom you'll find in another language. (Is there some reason to re-think the problem and decide if a ragged array of strings is *not* the way to solve it in Ada?) Perhaps some doctoral candidate in Psychology could take up this problem and study it? Why is it that a good Fortran programmer can write Fortran code no matter what language you give him? Is there a cure for this that doesn't involve electroshock therapy? :-) MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Some people think programming Windows is like nailing jello to the ceiling... easy with the right kind of nails." -- Ivor Horton - Beginning Visual C++ 6 ======================================================================