comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@arcor.de>
Subject: Re: Ada generics
Date: Wed, 03 Jan 2007 15:55:54 +0100
Date: 2007-01-03T15:55:09+01:00	[thread overview]
Message-ID: <1167836153.6124.37.camel@localhost> (raw)
In-Reply-To: <zst2mqlznqok$.199x4j4cvis4s.dlg@40tude.net>

On Wed, 2007-01-03 at 11:10 +0100, Dmitry A. Kazakov wrote:
> 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?

Declination etc. can be overcome by object oriented spelling.
Always use the nominative, and have ":=" etc. indicate the other
cases. :-)

As for ambiguity, English is full of it, too. "Springs" has at
least three different meanings I can think of. The plural is
actually used in one package naming idiom (package - plural,
type - singular). So if you have an ASCII 7bit named Springs
package, what's in it?


> The idea that programs should look like COBOL is just wrong.

Having looked at Cobol from time to time, I don't agree.
I find it neither verbose nor unclear. (Fortran >= 95 uses far
more words in some cases.)

> >> 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.

So to a Russian, a Russian language word describes something. Right?


> And run into mess. Can you tell me what is what without resorting to a
> binary editor in the following:
> 
> К, K, Κ, Қ

Same as 1 and l, O and 0, nothing new here.
BTW, I don't need a binary editor for distinguishing similar shapes.
An editor that informs about its characters is enough. (This character
thing on the screen should be an object, anyway.)


>  How are you support identifiers
> like "man-eating," (not to be mixed with "man eating")?

Like before: identifiers of a formal language still permit adding
clarity. Man_Eating_Activity, or Man_Eater, plus comments,
etc. whatever fits best. 



> > 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.

I was referring the the "uncompiled math source code" and its use
of full words in math declarations, definitions, proofs and so on.
Which also include "For all".
Doesn't
 "Let I ⊂ N be ..."
look quite similar to
 "declare subtype I is N ..."?

OTOH, there is one more argument in favor of π and other symbols:
mathematicians will feel at home.


> > These are not character set and casing issues, and you know it. :-)
> 
> But ss = ß wasn't either!

I think it has all to do with permitted character sets in Ada 2005
and the case insensitivity rules. 

> BTW, nobody answered if "іf" and "аccess" were legal Ada 2005 identifiers.
> Are they?

Randy pointed you to the answer in the manual I think; the AARM
specifically talks about these words. Or are you saying the RM doesn't
answer this question?





  parent reply	other threads:[~2007-01-03 14:55 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-21 14:14 Ada generics markww
2006-12-21 15:42 ` Dmitry A. Kazakov
2006-12-22  7:59   ` Martin Krischik
2006-12-22 16:14     ` Hyman Rosen
2006-12-22  7:59   ` Martin Krischik
2006-12-22 16:41   ` Hyman Rosen
2006-12-22 17:33     ` Markus E Leypold
2006-12-22 18:26       ` Hyman Rosen
2006-12-22 20:59         ` Markus E Leypold
2006-12-22 21:01           ` Markus E Leypold
2006-12-23 14:09           ` Marco
2006-12-25 14:23             ` Hyman Rosen
2006-12-29 14:13               ` Marco
2006-12-25 14:20           ` Hyman Rosen
2006-12-23 11:43     ` Dmitry A. Kazakov
2006-12-25 13:49       ` Hyman Rosen
2006-12-25 14:39         ` Dmitry A. Kazakov
2006-12-26  1:34           ` Hyman Rosen
2006-12-26  9:11             ` Dmitry A. Kazakov
2006-12-26 16:23               ` Hyman Rosen
2006-12-26 19:28                 ` Dmitry A. Kazakov
2006-12-27  1:44                   ` Hyman Rosen
2006-12-27  9:21                     ` Dmitry A. Kazakov
2006-12-27 19:06                       ` Hyman Rosen
2006-12-28 10:59                         ` Dmitry A. Kazakov
2006-12-28 16:29                           ` Hyman Rosen
2006-12-29 11:12                             ` Dmitry A. Kazakov
2006-12-29 14:56                               ` Hyman Rosen
2006-12-28 17:35                           ` Georg Bauhaus
2006-12-29 14:48                             ` Dmitry A. Kazakov
2006-12-29 19:39                               ` Georg Bauhaus
2006-12-30  9:58                                 ` Dmitry A. Kazakov
2006-12-30 14:53                                   ` Georg Bauhaus
2007-01-01 13:00                                     ` Dmitry A. Kazakov
2007-01-02 10:04                                       ` Georg Bauhaus
2007-01-02 11:11                                         ` Dmitry A. Kazakov
2007-01-02 12:33                                           ` Georg Bauhaus
2007-01-02 13:51                                             ` Dmitry A. Kazakov
2007-01-02 14:45                                               ` Georg Bauhaus
2007-01-03 10:10                                                 ` Dmitry A. Kazakov
2007-01-03 14:20                                                   ` Hyman Rosen
2007-01-03 14:55                                                   ` Georg Bauhaus [this message]
2007-01-04 10:15                                                     ` Dmitry A. Kazakov
2007-01-03 19:33                                           ` Alexander E. Kopilovich
2007-01-04 10:27                                             ` Dmitry A. Kazakov
2007-01-04 15:00                                               ` Alexander E. Kopilovich
2007-01-05 10:32                                                 ` Dmitry A. Kazakov
2006-12-30  2:25                               ` Randy Brukardt
2006-12-30 10:13                                 ` Dmitry A. Kazakov
2007-01-04  1:09                                   ` Randy Brukardt
2007-01-04 10:07                                     ` Dmitry A. Kazakov
2007-01-05  1:32                                       ` Randy Brukardt
2007-01-05  4:46                                         ` Randy Brukardt
2007-01-05  9:08                                         ` Jean-Pierre Rosen
2007-01-05 20:14                                         ` Georg Bauhaus
2007-01-06  0:14                                           ` Randy Brukardt
2006-12-29  0:09                           ` Randy Brukardt
2006-12-29 11:11                             ` Dmitry A. Kazakov
2006-12-30  2:40                               ` Randy Brukardt
2006-12-21 16:55 ` Hyman Rosen
2006-12-21 18:22   ` markww
2006-12-22  3:01 ` Steve
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox