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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3cd94a799504cebd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 13:36:18 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <19130ae.0110151428.65937d5b@posting.google.com> <3BCC8AF0.A8B1115D@san.rr.com> Subject: Re: Small question concerning use Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 16 Oct 2001 16:35:46 EDT Organization: http://www.newsranger.com Date: Tue, 16 Oct 2001 20:35:46 GMT Xref: archiver1.google.com comp.lang.ada:14751 Date: 2001-10-16T20:35:46+00:00 List-Id: In article <3BCC8AF0.A8B1115D@san.rr.com>, Darren New says... > > Ada.Strings.Unbounded.To_Unbounded_String(J) > Ada.String.Unbounded."&" > Ada.Strings.Unbounded.To_Unbounded_String(K); > >I don't see that as at all readable. I'm not sure quite what would be >better, tho. I'm just a newbie. :-) Ahhh. Well, I *do* think "use type" is perfectly fine, even for newbies. (Are there folks who don't? I keep hearing that there are.) So I'd expect this code to look more like: Ada.Strings.Unbounded.To_Unbounded_String (J) & K; -- The second conversion was unnessecary, as there are "&" -- functions that take String as one of the parameters. That looks quite a bit better, and its still clear from reading this exactly what type will result and where I can go to look it up. Sure, it would have been nice if you didn't have to type "Unbounded" and "String" twice, but most *decent* package designers won't do that to you. ;-) --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.