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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5f7230830b229a11 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-30 14:54:18 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!teaser.fr!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: =?iso-8859-1?Q?M=E1rio_Amado_Alves?= Newsgroups: comp.lang.ada Subject: RE: FW: Is the Writing on the Wall for Ada? Date: Tue, 30 Sep 2003 23:00:40 +0100 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1064958744 98450 80.67.180.195 (30 Sep 2003 21:52:24 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 30 Sep 2003 21:52:24 +0000 (UTC) To: Return-Path: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 X-OriginalArrivalTime: 30 Sep 2003 21:46:22.0909 (UTC) FILETIME=[4A61FED0:01C3879C] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:40 Date: 2003-09-30T23:00:40+01:00 > > ... Only String versions is enough. > > And some thing an array of integers are enough. I thought the > point of returning Unbounded_String was to make the Strings a > bit easier to handle. *Unbounded_String* is designed for easier handling of strings, not necessarily *functions* returning Unbounded_String. Even Unbounded.Slice returns a String. It's a matter of pros and cons. What do extra versions of Get_Line buy us? Only that you can write An_Unbounded_String := Get_Line; instead of An_Unbounded_String := To_Unbounded_String (Get_Line); Now balance this with the cons: - longer ARM, or - will take space from more important things; - overloaded functions that in some contexts will produce ambiguity (which the programmer must resolve with more code). My impression is cons > pros, that's all. (What is the AI for this anyway?)