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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,edafb2ab7e8839bc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Fri, 17 Nov 2006 12:30:43 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Char type verification References: <1163628033.606530.190550@i42g2000cwa.googlegroups.com> <1163627827.1632.10.camel@localhost.localdomain> <1163632532.101867.123200@m73g2000cwd.googlegroups.com> <455cf4f8$0$17901$426a74cc@news.free.fr> <1163777588.040478.79300@b28g2000cwb.googlegroups.com> Date: Fri, 17 Nov 2006 19:30:28 +0100 Message-ID: <878xiax6wr.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:48uNsO2BsmuEkd1S7hwWNGfjvqE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 62.235.203.233 X-Trace: sv3-FYbgGmohAwPYYx4YcAD1jjvhGZ9IHSAYEqtPRwurhJ0Zxgvn99KsLo8H9+o9/niS52yc438kaljuoRo!gPnADCAw+sHOtllQ8CJ7YrUO0NoPuzCV0iy11QgOJzqX/cKNU0iP+xd9kEKAv8tfMKPcWuX9zSo= X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:7537 Date: 2006-11-17T19:30:28+01:00 List-Id: Koray Erkan writes: > The challenge was purposefully simple and messy so that you didn't get > bogged down with the theoretical intricacies of a major one. > > I guess this is not the way people use comp.lang.ada. Which is why I > dropped a resentful - and regrettably not too gallant - closing note. I think the incident is really a culture clash stemming from Ada's nature as a high level language, its strictess, and its emphasis on readability. High level means that Ada allows you to think in terms of your problem (uppercase and lowercase letters) rather than the solution (bit patterns and bit masks). Strictness means that a letter should not be mistaken for a number. Emphasis on readability means that an experienced Ada programmer will write a program that makes it very clear to the reader what the problem is, and how the program solves it. So, you came here and asked "how do I implement this in Ada?" and experienced Ada programmers retorted, "but what is your problem?". I am not at all surprised that both sides failed to understand the other. This very newsgroup has countless examples along the lines of: C programmer: What is the string terminator character in Ada? Ada programmer: there is none because you don't need one. C programmer: huh? Lisp programmer: How do I keep track of a string's length in Ada? Ada programmer: like all arrays, strings know their bounds and you can query them using 'First, 'Last and 'Length. But the bounds are immutable. If you want variable-length strings you need Unbounded_String. Lisp programmer: OK, thanks. BTW, all objects are immutable in a functional language :) -- Ludovic Brenta.