comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <Nick.Roberts@dial.pipex.com>
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: <01bd22bd$0b69fa60$5cfd82c1@xhv46.dial.pipex.com> (raw)
In-Reply-To: 69ntk6$qj8@top.mitre.org


Precisely right, Mikey babe,  You've more or less listed precisely those
rare cases that I was banging on about.  I know, I know, I know, you
yourself use lots and lots of FSTs; but I would suggest, in the great
scheme of things, that large FSTs, giant arrays, etc. constitute rare
cases.  (No? :-)

To use this spot to answer Robert Dewar also (ever conscious of bandwidth,
signal to noise ratios etc.), Robert argues that the use of explicit
conversions or not depends on the level of abstraction, which I
wholeheartedly agree with.  He then says that in cases where the level of
abstraction does not suit an explicit conversion, use of the unary +
operator approximates to an implicit conversion (which Ada does not support
generally).  Well, true, it's nearer than a great long identifier and
brackets; but it's still not an implicit conversion, and it's appearance
will (probably) worry a programmer who doesn't already know what it means,
whereas the explicit identifier (probably) won't.

What I'm saying is that it is actually slightly more pragmatic to use the
explicit identifier, except in those (rare!) cases such as large FSTs,
giant arrays, etc. where reducing bulk would actually matter (and, indeed,
improve readability).

-- 

Nick Roberts
Croydon, UK

Proprietor, ThoughtWing Software; Independent Software Development
Consultant
* Nick.Roberts@dial.pipex.com * Voicemail & Fax +44 181-405 1124 *
*** Eats three shredded spams every morning for breakfast ***


Michael F Brenner <mfb@mbunix.mitre.org> wrote in article
<69ntk6$qj8@top.mitre.org>...
> Using a function call (say, about 10 characters long) versus
> using a single character (+) to represent the type change
> is more readable on a single instance of the conversion.
> 
> 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.





  parent 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       ` Robert Dewar
1998-01-13  0:00       ` Stephen Leake
1998-01-13  0:00         ` Nick Roberts
1998-01-13  0:00       ` Stephen Leake
     [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
1998-01-16  0:00             ` Nick Roberts [this message]
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