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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d0fa2610a6bea4ec X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Nested declares, constant size arrays and clarity References: <87641n92tc.fsf@ludovic-brenta.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1191560072 12.201.97.213 (Fri, 05 Oct 2007 04:54:32 GMT) NNTP-Posting-Date: Fri, 05 Oct 2007 04:54:32 GMT Organization: AT&T ASP.att.net Date: Fri, 05 Oct 2007 04:54:32 GMT Xref: g2news2.google.com comp.lang.ada:2312 Date: 2007-10-05T04:54:32+00:00 List-Id: Mateusz Papiernik wrote: > > With strings I also have to work some way. As for now I'm using > Unbounded_Strings, because easy implementations of functions like split > (I'm parsing CSV file). Is it a good practice to use U_S, or should I > fall back to normal strings and fight with implementation? When you understand String, you'll find the implementation works for you, and you don't have to fight it. There are very few places where you really need a variable-length string type; most things can be done with String and block statements. But there's nothing wrong with using Unbounded_String, and sometimes a variable-length string type can result in shorter or more readable code. -- Jeff Carter "Why, the Mayflower was full of Fireflies, and a few horseflies, too. The Fireflies were on the upper deck, and the horseflies were on the Fireflies." Duck Soup 95