comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: newbie can't get exceptions to work!
Date: Mon, 09 Apr 2001 17:23:35 GMT
Date: 2001-04-09T17:23:35+00:00	[thread overview]
Message-ID: <Pine.BSF.4.21.0104090948440.6359-100000@shell5.ba.best.com> (raw)
In-Reply-To: <nlkA6.843$FY5.48223@www.newsranger.com>

On Mon, 9 Apr 2001, Ted Dennison wrote:
> In article <Pine.BSF.4.21.0104081508050.8921-100000@shell5.ba.best.com>, Brian
> Rogoff says...
> >
> >On Sat, 7 Apr 2001, Larry Hazel wrote:
> >> I personally think {} should be removed from the character set, or at least
> >> require a minimum of 5 keystrokes to get either. 
> >
> >Well, personally I think this opinion is crap. Any reasons behind your
> 
> Whose, yours or Larrys? :-) 

Larry's of course. You mean OpenToken couldn't figure that out? What a 
useless library! :-)

> >opinion? We were discussing making a language popular, and Bob Duff
> >espoused the theory that C influenced syntax is popular, and that a new 
> >language might seek to emulate it. I don't find {} vs begin end to be 
> >terribly important, and not a reason that I like Ada over C and C++. 
> 
> There is absolutely no evidence that language popularity has anything
> to do with syntax.

Bob Duff apparently disagrees. While I don't entirely share his opinion, I
have to admit that there is a fair bit of evidence in support of it. 

> That being the case, you'd like to strive for readability, not tersenes.

False dichotomy. In many cases, terse notation is more readable. 

Besides, I imagine English keywords, rather than French, German, Chinese,
or Hindi, were chosen for some reason. Assume that there are far more
programmers (C, C++, Java, ....) who use a programming language with {} 
instead of begin-end nowadays, I think it's a fairly obvious argument
which suggests that today {} is a readable choice based on the experience 
of readers. 

If you don't care at all about the readers expectations based on previous
experience, an argument can be made for indentation based block structure
as in Python and Haskell. I find that very readable.

> Curly-braces look quite a bit like parens at first glance (and sometimes upon
> further glances too, depending on the font). Being a single chararacter, they
> are fairly easy to miss with the eye, and are harder for the eye to properly
> line up with distant lines (thus perhaps cause misapprehension of the proper
> nesting level). In fact, the impression of pointing in a certian direction
> causes a mild optical illusion which worsens the problem. Being mostly vertical,
> they can also get accidentally hidden  behind the mouse pointer or an insertion
> cursor.

You're really reaching here!

I've never had these problems, in many years of C, C++, and Java programming. 
I have had the problem of not being able to pick out arrays easily in the
code of Ada since nothing really stands out in Ada. A good syntax should
make different things look different. 

> >endlessly. Suffice to say that a slightly less verbose, more C like 
> >surface syntax for an Ada like language isn't a bad idea IMO. 
> If you want to favor the writer over the reader, perhaps. 

That's bullshit. This reader doesn't find Ada syntax all that great, nor C 
*syntax* that bad. Well, OK, modulo the declaration syntax. But I did say 
"copy Pascal" not C there. 

I suspect that most people who push this argument think that there is some 
objective criteria for readability which Ada optimizes. Please state it
precisely. 

> That is not The Ada Way, though.

I find Ada more readable than C++ because it has a lot fewer surprises in
it's semantics. For instance, the combination of implicit coercion with 
overloading in C++ is a nightmare. Ada's modes express the programmer intent 
well, so I suggested keeping them. Syntax in C++ is gruesome, but in Java 
it isn't too bad. It's only bad because OO is largely a bunch of crap, not
because of it's syntax.

> >> And keep () for array indices.  I have often used arrays as
> >> approximations of complex functions in the early stages of development.  
> >
> >I've never done that, and besides () makes code so much less readable. If
> I have. Its damn handy. I don't find it unreadable at all. It takes "information
> hiding" one step further. An array is really just a prebuilt mapping function.

More BS. Arrays and strings are data, not functions. 

> >Anyways, this was a post-facto justification of this awful choice in Ada. 
> >To be fair, it wasn't really a choice (of Ichbiah and co.) but a
> >requirement to the languages competing. 
> Are you sure? My understanding was that this was done *on purpose* for
> just this reason.

My recollection is that the last time this was discussed Robert Dewar
confirmed the statement that there was no discussion of using [] as array 
brackets at all, the choice of () had to do with the DoD requirements on
the character set to support (now) obsolete machines. All of this singing
and dancing about the virtues of this choice are post facto
rationalizations.

-- Brian





  reply	other threads:[~2001-04-09 17:23 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-05  3:19 newbie can't get exceptions to work! Jeff Shipman
2001-04-05  4:25 ` Ed Falis
2001-04-05 11:00   ` martin.m.dowie
2001-04-05 14:21     ` Ted Dennison
2001-04-05 17:50       ` Fraser Wilson
2001-04-05  4:34 ` Jeff Shipman
2001-04-05  4:59 ` Wilhelm Spickermann
2001-04-05 14:14   ` Ted Dennison
2001-04-05 16:37     ` Wilhelm Spickermann
2001-04-06 13:09     ` Marc A. Criley
2001-04-06 15:04       ` Ted Dennison
2001-04-06 16:43       ` Robert A Duff
2001-04-06 17:39         ` Ted Dennison
2001-04-06 21:50           ` Robert A Duff
2001-04-06 20:11         ` Brian Rogoff
2001-04-06 22:20           ` Robert A Duff
2001-04-06 23:04             ` Brian Rogoff
2001-04-07  5:48               ` Jeffrey Carter
2001-04-10  1:29                 ` Robert A Duff
2001-04-07 19:30               ` Robert A Duff
2001-04-07 21:17                 ` Brian Rogoff
2001-04-07 21:25                   ` Ayende Rahien
2001-04-07 22:57                     ` David Starner
2001-04-08 12:10                       ` Ayende Rahien
2001-04-08  2:12                     ` Larry Hazel
2001-04-08 12:12                       ` Ayende Rahien
2001-04-09 16:20                         ` Larry Hazel
2001-04-10  2:38                           ` Ayende Rahien
2001-04-10  3:25                             ` James Rogers
2001-04-08 22:18                       ` Brian Rogoff
2001-04-09 15:14                         ` Ted Dennison
2001-04-09 17:23                           ` Brian Rogoff [this message]
2001-04-09 18:23                             ` Laurent Guerby
2001-04-09 19:15                               ` Brian Rogoff
2001-04-10 18:21                                 ` Laurent Guerby
2001-04-10 19:44                                   ` Brian Rogoff
2001-04-11 18:03                                     ` Laurent Guerby
2001-04-11 18:33                                       ` Samuel T. Harris
2001-04-14  0:06                                         ` Robert A Duff
2001-04-12  1:42                                       ` Mike Silva
2001-04-12  2:38                                       ` Brian Rogoff
2001-04-12 23:23                                         ` Laurent Guerby
2001-04-13  2:44                                           ` Brian Rogoff
2001-04-11 13:24                                   ` Ayende Rahien
2001-04-11 13:14                                     ` Mats Karlssohn
2001-04-11 15:08                                       ` Ayende Rahien
2001-04-11 21:42                                       ` Fraser Wilson
2001-04-12 23:55                                         ` Robert A Duff
2001-04-10  2:12                               ` Robert A Duff
2001-04-10  3:47                                 ` Brian Rogoff
2001-04-10 13:40                                 ` Ada keywords (was: Re: newbie can't get exceptions to work!) Marin David Condic
2001-04-10 14:26                                   ` Jean-Pierre Rosen
2001-04-09 20:49                             ` newbie can't get exceptions to work! Ted Dennison
2001-04-09 21:44                               ` Brian Rogoff
2001-04-09 21:59                                 ` Ted Dennison
2001-04-10  2:54                                   ` Ayende Rahien
2001-04-10 14:00                                     ` Ted Dennison
2001-04-10 17:44                                     ` Fraser Wilson
2001-04-10  6:59                               ` Mats Karlssohn
2001-04-10 14:18                                 ` Ted Dennison
2001-04-10 16:27                                   ` Mark Biggar
2001-04-11 11:55                                     ` Mats Karlssohn
2001-04-11 14:34                                       ` Samuel T. Harris
2001-04-11 15:50                                         ` Pat Rogers
2001-04-12  6:27                                         ` Mats Karlssohn
2001-04-11 11:49                                   ` Mats Karlssohn
2001-04-11 15:38                                     ` Robert A Duff
2001-04-13 16:12                             ` Matthew Woodcraft
2001-04-10  1:41                   ` Robert A Duff
2001-04-10  3:03                     ` James Rogers
2001-04-10  3:58                       ` Brian Rogoff
2001-04-10 21:48                         ` Ted Dennison
2001-04-11 15:09                           ` Ayende Rahien
2001-04-11 21:57                             ` James Rogers
2001-04-11 23:13                               ` Brian Rogoff
2001-04-12  6:33                                 ` Mats Karlssohn
2001-04-12 16:38                                   ` Brian Rogoff
2001-04-17  7:04                                     ` Mats Karlssohn
2001-04-17  9:08                                       ` Jean-Pierre Rosen
2001-04-12 15:16                               ` Ted Dennison
2001-04-12 21:22                                 ` James Rogers
2001-04-10  4:26                     ` Brian Rogoff
2001-04-11 15:30                       ` Robert A Duff
2001-04-11 17:33                         ` Brian Rogoff
2001-04-10  1:26               ` Robert A Duff
2001-04-10  2:11                 ` Brian Rogoff
2001-04-14  0:00                   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2001-04-05  5:26 Christoph Grein
replies disabled

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