comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: renaming Interfaces.Java.Ada_To_Java_String to the + operator
Date: 1998/01/16
Date: 1998-01-16T00:00:00+00:00	[thread overview]
Message-ID: <dewar.884996397@merv> (raw)
In-Reply-To: 69ntk6$qj8@top.mitre.org


Mike says

<<The place where the extra length really matters is when you
have a lot of input to do, say 10000 lines, then you are saving
100000 key strokes, which could be a lot of data input money.

This almost suggests a compromise that unary operators should
have a corresponding function name. Use the function name
for small numbers (say 10 or fewer) instances.

Use the prefix operator when doing large amounts of stuff, like
defining large finite state machines, filling in giant arrays,
making test cases, defining test scenarios for a package body, etc.
>>


I strongly disagree with the above. Which of the two forms is preferable
is a matter of semantic levels of discourse, and if one form is clearer
if used once it is clearer if used 1000 times.

The idea that one should take into account the effort of the writer is
entirely wrong-headed. In the Ada world, we always favor the reader over
the writer. So arguments should always be framed in terms of what will
be easier to read.

If you indeed think that in the case of a single instance, the long name
is always clearer, then I cannot see how this does not apply to the
multiple occurrence case. Of course I do not agree with this premise, for
reasons I have explained in detail previously.

P.S. I will tell you an amazing technique for saving those 100000 key
strokes. Type them in using +, and then use the amazing global replace
technology found in all editors for the last 30 years, and replace the
plus signs with what ever long name you want (well you will have to
fiddle with parens too, but this is also easy enough to automate :-)





  reply	other threads:[~1998-01-16  0:00 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-01-11  0:00 renaming Interfaces.Java.Ada_To_Java_String to the + operator Terry J. Westley
1998-01-10  0:00 ` Robert Dewar
1998-01-10  0:00   ` Matthew Heaney
1998-01-13  0:00     ` Tom Moran
1998-01-13  0:00       ` Stephen Leake
1998-01-13  0:00         ` Nick Roberts
1998-01-13  0:00       ` Stephen Leake
1998-01-13  0:00       ` Robert Dewar
     [not found]       ` <En3Cxz.7HD@world.std.com>
1998-01-20  0:00         ` Robert Dewar
1998-01-21  0:00           ` Stephen Leake
1998-01-22  0:00           ` Robert Dewar
1998-01-22  0:00             ` Anonymous
     [not found]               ` <dewar.885498969@merv>
1998-01-23  0:00                 ` Tom Moran
1998-01-23  0:00                 ` Geert Bosch
1998-01-23  0:00             ` Anonymous
1998-01-24  0:00             ` Tucker Taft
1998-01-11  0:00   ` Chris Morgan
1998-01-11  0:00     ` Robert Dewar
1998-01-11  0:00       ` Chris Morgan
1998-01-11  0:00         ` Robert Dewar
1998-01-11  0:00           ` Chris Morgan
1998-01-11  0:00             ` Robert Dewar
1998-01-11  0:00 ` Nick Roberts
1998-01-11  0:00   ` Robert Dewar
1998-01-14  0:00     ` Anonymous
1998-01-14  0:00       ` Robert Dewar
1998-01-11  0:00   ` Brian Rogoff
1998-01-13  0:00     ` Terry J. Westley
1998-01-14  0:00       ` Robert Dewar
1998-01-15  0:00         ` Nick Roberts
1998-01-15  0:00           ` Robert Dewar
1998-01-16  0:00           ` Michael F Brenner
1998-01-16  0:00             ` Robert Dewar [this message]
1998-01-16  0:00             ` Nick Roberts
1998-01-16  0:00               ` Robert Dewar
1998-01-17  0:00                 ` miniscences Nick Roberts
1998-01-17  0:00                   ` miniscences Robert Dewar
1998-01-19  0:00                 ` renaming Interfaces.Java.Ada_To_Java_String to the + operator Anonymous
1998-01-25  0:00                   ` Matthew Heaney
1998-01-12  0:00 ` Tucker Taft
replies disabled

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