comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: overload ":=" ???
Date: 1996/07/22
Date: 1996-07-22T00:00:00+00:00	[thread overview]
Message-ID: <Duy6HK.BLM@world.std.com> (raw)
In-Reply-To: ws9d91pcshi.fsf@schonberg.cs.nyu.edu


In article <ws9d91pcshi.fsf@schonberg.cs.nyu.edu>,
Laurent Guerby <guerby@gnat.com> wrote:
>David> a := To_Text("test"); -- seems too wordy
>
>   If you are in a race where the goal is to type the minimal number
>of character to write your code, I can tell you: ada is not the right
>language ...

I agree with David here.  The problem is not how much you have to type.
The problem is extra verbosity for the person READING the code.  Extra
verbosity is good if and only if it adds useful information for the
reader of the program.  Here, we have a character-string data type, and
yet we can't directly use string literals (or indexing, slicing, etc),
just because it doesn't happen to be the built in sort of string.  (The
built-in string types are no good, because they aren't dynamic enough
for this application.)

The To_Text conversion is just extra junk -- there is no "conversion"
going on at the conceptual level.

Note that the suggestion of calling it "+" proves my point -- if there
were really a useful operation going on here (at the conceptual level),
then everybody would agree that it should have a clear name, and calling
it "+" would be intolerable.

- Bob




  reply	other threads:[~1996-07-22  0:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-17  0:00 overload ":=" ??? David Morton
1996-07-17  0:00 ` Robert Dewar
1996-07-18  0:00   ` Laurent Guerby
1996-07-18  0:00   ` David Morton
1996-07-19  0:00     ` Brad Balfour
1996-07-19  0:00     ` David Weller
1996-07-25  0:00   ` Wolfgang Gellerich
1996-07-25  0:00     ` Robert A Duff
1996-07-18  0:00 ` John Herro
1996-07-18  0:00   ` Robert Dewar
1996-07-19  0:00     ` John Herro
1996-07-21  0:00       ` David Morton
1996-07-21  0:00       ` Laurent Guerby
1996-07-22  0:00         ` Robert A Duff [this message]
1996-07-23  0:00           ` Laurent Guerby
1996-07-23  0:00             ` John Herro
1996-07-23  0:00             ` Robert A Duff
1996-07-22  0:00       ` David Morton
1996-07-22  0:00         ` Robert Dewar
1996-07-23  0:00         ` Robert A Duff
1996-07-22  0:00           ` Robert Dewar
1996-07-22  0:00       ` Laurent Guerby
1996-07-22  0:00       ` Laurent Guerby
1996-07-23  0:00       ` Tarjei Jensen
1996-07-23  0:00         ` Robert A Duff
1996-07-24  0:00       ` Robert I. Eachus
1996-07-18  0:00 ` Jon S Anthony
1996-07-19  0:00 ` Joerg Ozimek
replies disabled

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