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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c63aa81a67eceb8f X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Ragged Array Proposal Date: 1999/09/28 Message-ID: <7spf1n$edh$1@nnrp1.deja.com>#1/1 X-Deja-AN: 529890490 References: <37e7c08e@eeyore.callnetuk.com> <37EA9A72.594ED8F5@mitre.org> <37ebb120@eeyore.callnetuk.com> <7so0i4$d8j$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x30.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Tue Sep 28 04:09:34 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-28T00:00:00+00:00 List-Id: In article <7so0i4$d8j$1@nnrp1.deja.com>, > Fruits : constant array (Positive range <>) of > Ada.Strings.Unbounded.Unbounded_String := > (Ada.Strings.Unbounded.To_Unbounded_String("Apple"), > Ada.Strings.Unbounded.To_Unbounded_String("Orange"), > Ada.Strings.Unbounded.To_Unbounded_String("Pear"), > ...); I can't *imagine* why you think that obviously redundant qualification makes your code more readable. It is obvious that the names in Unbounded have been chosen to be appropriate for use with USE clauses (otherwise the name would have been something like From_String, without the Unbounded in the name). I perfectly understand the thought that generally likes to avoid USE clauses, but I must say when people carry this to absurd extremes like the above, it is hard to understand the thought process involved. Clearly no one would reuse the name To_Unbounded_String in a user defined package (if they had any sense at all), so the unqualified name is perfectly clear in practice. Certainly we cannot buy an argument for a feature which goes like this: 1. I refuse to use USE clauses 2. Therefore some code I have to write looks awful 3. Therefore I need some special feature in the language to allow me to do this in some special way :-) Of course in this particular case, even the simple name To_Unbounded_String is heavy, which is why the idea of a light conversion operator makes good sense (the unary "+" suggestion). Sent via Deja.com http://www.deja.com/ Before you buy.