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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a84eaf8fb2470909 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada generics Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1166710494.869393.108730@a3g2000cwd.googlegroups.com> <186qujlcx6rwl.1h6eq4mbdaa5s$.dlg@40tude.net> <1167150212.165097.289010@73g2000cwn.googlegroups.com> <1qmdvus6du3xu.1n21tzgev46ia$.dlg@40tude.net> <1167246396.057028.325080@48g2000cwx.googlegroups.com> <15jxp8z1iu5fk.1oeihvavjghgg$.dlg@40tude.net> <1167327306.22163.66.camel@localhost> <1on3cinnnckc5.1rxxvjhxs5qzl.dlg@40tude.net> <1167421145.30532.11.camel@localhost> <1167490403.26940.44.camel@localhost> <1a2r4wlgiett6.1w5j3q7696x72$.dlg@40tude.net> <1167732264.661.36.camel@localhost> <78t224mtd234.1e11h379pwu57.dlg@40tude.net> <1167741187.661.50.camel@localhost> <1167749126.661.91.camel@localhost> Date: Wed, 3 Jan 2007 11:10:55 +0100 Message-ID: NNTP-Posting-Date: 03 Jan 2007 11:10:50 CET NNTP-Posting-Host: 12b5af2d.newsspool2.arcor-online.net X-Trace: DXC=]f;0C\Qi>kXU6b:FjPaGjQA9EHlD;3YcR4Fo<]lROoRQFl8W>\BH3YR[7HBhA@7V5QDNcfSJ;bb[UIRnRBaCd On Tue, 02 Jan 2007 15:45:27 +0100, Georg Bauhaus wrote: > On Tue, 2007-01-02 at 14:51 +0100, Dmitry A. Kazakov wrote: > >> I find "вода" far more descriptive! (:-)) > > I wouldn't hesitate to write "вода" in a Russian only program. Ah, but then you are in a big trouble, because "вода", "воде", "водой", "воды", "водами", "водах" would all be equivalent in terms of what they describe, i.e. "water", "lack of content", "confusion making", "being ignorant", "alcohol drink", "time passed", "equivalence", "being down"? Should Ada compilers learn Russian inflection rules? The idea that programs should look like COBOL is just wrong. >> Natural language words (even pictographs) >> describe absolutely nothing but themselves. > > (How can you be certain of this? :-) As a proof consider a human being who does not know written Russian. >>> Programming problems cannot reasonably described in full >>> using only formal symbolism. >> >> So what? > > It means a programming language should enable its users to choose > good names. To me, this means reasonable flexibility in the choice > of identifiers. We are not yet used to writing π in a geometry program > even though it is an obvious choice for all involved. A few decades > ago, People weren't expecting to be able to write A := {1, 3 .. 15} > when using SETL. They instead had to revert to trigraphs for the > braces and such, IIRC. This has changed. So maybe some day Ada > programmers will be fine with Greek π in geometry programs, > and use ω occasionally, for local variables that have to do with > spinning things. And run into mess. Can you tell me what is what without resorting to a binary editor in the following: К, K, Κ, Қ >> The language treats *any* names >> equally. Any application domain meaning of names is outside the language. > > I don't think application domain names can be chosen properly if > you won't let application domains influence language design, > including identifier spelling rules (in say 5% of future > programs if Randy's estimates will turn out to be true). But you have no chance to achieve that. How are you support identifiers like "man-eating," (not to be mixed with "man eating")? >>>> Simplicity of implementation does not justify doing wrong things! (:-)) >>> >>> Indeed, this is why I like to be able to write identifiers >>> that are written correctly, >> >> Mathematicians use much less descriptive identifies being absolutely free >> to use Latin, Greek and Hebrew alphabets. Yet nobody even tried to use full >> words. Why? > > Mathematicians use full words almost all the time when they > explain their reasoning to human readers. > > echo "Let I ⊂ N be a finite index set. For all k ∈ I, P(k)." | wc > 1 15 58 Huh, none of these words is an *identifier*! They just don't use descriptive identifiers, neither for free variables, nor for functions. > How many math books or papers are there that use a more terse > mode of expression? > >> Yet another "German" rule: "a_b" = "ab"? In that spirit, what about >> middle-endian integer literals and postfix forms for all function calls? >> (:-)) > > These are not character set and casing issues, and you know it. :-) But ss = ß wasn't either! BTW, nobody answered if "іf" and "аccess" were legal Ada 2005 identifiers. Are they? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de