From: guerby@gnat.com (Laurent Guerby)
Subject: Re: overload ":=" ???
Date: 1996/07/22
Date: 1996-07-22T00:00:00+00:00 [thread overview]
Message-ID: <ws9d91oko89.fsf@schonberg.cs.nyu.edu> (raw)
In-Reply-To: 4soh73$56h@newsbf02.news.aol.com
Bob> I agree with David here. The problem is not how much you have to
Bob> type. The problem is extra verbosity for the person READING the
Bob> code. Extra verbosity is good if and only if it adds useful
Bob> information for the reader of the program.
Well, I guess it depends on what background you have on Ada (;-),
when I read in an Ada source.
X := "sdfsfg";
I know that X is a fixed string (or wide_string). When I read:
X := To_X ("sgsgs");
I know that a change in representation is on the way (may be X
isn't a fixed string after all), and it's not extra verbosity.
Bob> Here, we have a
Bob> character-string data type, and yet we can't directly use string
Bob> literals (or indexing, slicing, etc), just because it doesn't
Bob> happen to be the built in sort of string. (The built-in string
Bob> types are no good, because they aren't dynamic enough for this
Bob> application.)
This "sort of string" is built in Ada 95 under the name
Bounded_String.
Bob> The To_Text conversion is just extra junk -- there is no
Bob> "conversion" going on at the conceptual level.
"conversion" at the conceptual level is pretty vague. What about
X : Float := 1; -- What, that's illegal?
-- Why should add ".0"? At the conceptual level there's no need for it.
Y : Integer := "32"; -- grr...
Z : String := 'A'; -- ...
If you allow programmers to play with assignment, you'll definitly
damage the readability of all Ada sources.
--
Laurent Guerby <guerby@gnat.com>, Team Ada.
"Use the Source, Luke. The Source will be with you, always (GPL)."
next prev parent 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 ` David Morton
1996-07-19 0:00 ` Brad Balfour
1996-07-19 0:00 ` David Weller
1996-07-18 0:00 ` Laurent Guerby
1996-07-25 0:00 ` Wolfgang Gellerich
1996-07-25 0:00 ` Robert A Duff
1996-07-18 0:00 ` Jon S Anthony
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
1996-07-23 0:00 ` Laurent Guerby
1996-07-23 0:00 ` Robert A Duff
1996-07-23 0:00 ` John Herro
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 [this message]
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-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