From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9fb64e4c58f1fe X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: overload ":=" ??? Date: 1996/07/22 Message-ID: #1/1 X-Deja-AN: 170539112 references: <4soh73$56h@newsbf02.news.aol.com> <31F1C49D.451B20C1@jinx.sckans.edu> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-07-22T00:00:00+00:00 List-Id: In article , Laurent Guerby 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