From: Ted Dennison<dennison@telepath.com>
Subject: Re: newbie can't get exceptions to work!
Date: Mon, 09 Apr 2001 20:49:10 GMT
Date: 2001-04-09T20:49:10+00:00 [thread overview]
Message-ID: <afpA6.1150$FY5.85107@www.newsranger.com> (raw)
In-Reply-To: Pine.BSF.4.21.0104090948440.6359-100000@shell5.ba.best.com
In article <Pine.BSF.4.21.0104090948440.6359-100000@shell5.ba.best.com>, Brian
Rogoff says...
>
>On Mon, 9 Apr 2001, Ted Dennison wrote:
>False dichotomy. In many cases, terse notation is more readable.
I didn't say there was a dichotomy, just that terse notation is not the goal,
and thus can't be put forth as a good unto itself, when weighed against other
factors.
>Besides, I imagine English keywords, rather than French, German, Chinese,
>or Hindi, were chosen for some reason. Assume that there are far more
I'd say that if the Hindi words for "begin" and "end" were used, it would still
be a better choice than using a single, practicly 1-dimensional character.
>> 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.
>I've never had these problems, in many years of C, C++, and Java programming.
I've had every single one of them. The problems lining begin-end blocks up is
particularly nasty when trying to understand someone else's code heavily
indented code, especially those who use less than 3 spaces for indentation.
>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.
Why do you *need* to pick out arrays?
I'd say that a good syntax should *not* point out differences that are of no
consequence to the user. Another good example of this principle is the use of
dot-notation syntax. In Ada MyObject.Field could refer to:
o A record object with a field named "Field".
o A pointer that is being dereferenced, which points to the above.
o An object named Field in the package MyObject.
o A routine named Field in the package MyObject.
These are all quite different things underneath the scenes, but as long as they
return a value of the correct type the user doesn't really care about that.
That's good for me as a reader, because that hides detail that I don't really
care about in trying to figure out the code in which it appears. If I start to
worry about how MyObject.Field gets its value, *then* I'll go track down its
definition. I take it you don't like this either?
>More BS. Arrays and strings are data, not functions.
Ahhh, now we are getting into software metaphisics. At a low level, its all just
bits. But we don't (often) read the code in binary.
At an equally silly high-level, we've got this "black box" program. Somewhere in
the middle, we have concepts like "arrays" and "functions". As our high-level
language source code representation is somewhere in the middle, there is going
to be a certain amount of abstraction. It sounds like you just like a smidge
less abstraction in your source code than I do. As a matter of taste, that's
fair enough. But I wouldn't try to claim that its somehow better that way. That
would be fighting history.
>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
That does seem to sound a bit familiar. Still, every now and then the bread
lands jelly-side-up. :-)
---
T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html
home email - mailto:dennison@telepath.com
next prev parent reply other threads:[~2001-04-09 20:49 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
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 ` Ted Dennison [this message]
2001-04-09 21:44 ` newbie can't get exceptions to work! 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