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 19:15:53 GMT
Date: 2001-04-09T19:15:53+00:00	[thread overview]
Message-ID: <Pine.BSF.4.21.0104091147440.6359-100000@shell5.ba.best.com> (raw)
In-Reply-To: <86u23yszjo.fsf@acm.org>

On 9 Apr 2001, Laurent Guerby wrote:
> Brian Rogoff <bpr@shell5.ba.best.com> writes:
> > On Mon, 9 Apr 2001, Ted Dennison wrote:
> > > 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. 
> 
> I hope you're not thinking terseness here,

No, I was thinking that most of the educated world can read English so
choosing English rather than French as the language from which the
keywords are drawn makes sense. From there, I reason that if we accept
familiarity as an argument (familiar symbols are more readable) then 
the choice of {} for begin end is so well ingrained in some huge fraction
of systems programmers (I assume you believe that C is more popular than
Ada; if not, we don't have much to talk about :) that it is a reasonable
choice. 

> The reason for the choice of english is probably due to the language
> being used to vehiculate scientific knowledge, 

That's definitely it. 

> and may be 7-bit ASCII only supporting english and not really well
> other european or non european languages.

Well, no doubt some Dutch speaker could put forth Nederlands as a choice, 
and there is already some precedent there on account of the names for the 
semaphor operations ;-). 

> > 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.
> 
> I think the {} vs begin/end issue being completly unsignificant vs,
> for example, 

Yes, I completely agree. Let's look at some of these

> brain damaged declarations,

Hey, I said ditch the C declaration syntax, didn't I? 

> broken case statements,

Broken semantically. Using the name switch wouldn't make a difference. 
Besides, I much prefer ML or Haskell pattern matching to Ada's case 
statement. More readable, more powerful, terser, better. 

> unambiguous and readable if/then/elsif/else/endif nesting,

Yes. C is very weak here. elsif and mandatory {} would help a lot. 

> named and order free arguments and agregates, 

Would be nice. There is some discussion about adding this to Ocaml now
too. You can use labelled params, but commuting arguments are still up in
the air. 

> silly numerous levels of operator priority 

Of course. 

> and operator character choice, 

True, but I must say that the += and friends are nice. Of course an Ada
version would be +:= and still nice. And while I don't like the syntax,
the ? : of C is also nice, but, as you know, I'm a functional kind of guy
now. 

> conflict between those silly operators and template syntax in C++, 

Right, and no need to go to C++ for that, as a similar problem pops up 
(albeit far less frequently) in C with "x = numerator /*p_denominator;"

> idiotic comma operator, and in
> general hard to parse by simple technique syntax (ask C++ compiler
> writers).

Sure. Some guy wrote a paper called "C++ Resyntaxed" which fixed a lot of 
these problems. And you forgot to mention how many ways the keyword
"static" is used, and... well, I guess we could go on forever. 

> And I would absolute religious belief in keeping those
> historical mistakes around (see Java).

I can't parse that. Let me guess, "And I would add, an absolute ..."?
I agree. C++ can be forgiven, as can Ada 95, since backwards compatibility
was a goal. Java just sucks. Does C# fix that stupid drop through case
problem, or was that botched too? 

> If {} vs begin/end is issue for a new language, allow both and end of
> the story.

That would be a mistake. Personally, I can go either way, begin-end or {}. 
I'm just annoyed at the bizarre thinking that puts one of these as greatly 
superior to the other. I really find () to be a bummer about Ada syntax
and I don't agree that wordier is always better. 

> PS: also, on a french keyboard, {} [] are a major pain to type ;-).

Hey man, get an American keyboard!

-- Brian





  reply	other threads:[~2001-04-09 19:15 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
2001-04-09 18:23                             ` Laurent Guerby
2001-04-09 19:15                               ` Brian Rogoff [this message]
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