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,b076e6315fd62dc5 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.237.71 with SMTP id va7mr693010pbc.6.1336631608336; Wed, 09 May 2012 23:33:28 -0700 (PDT) Path: pr3ni8965pbb.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: fyi, very interesting Ada paper OOP vs. Readability Date: Thu, 10 May 2012 07:33:27 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="GhzCuPrEZ+dInccd0W7aSw"; logging-data="26786"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+vfy6RiryczN07zF+R1IIvhgikn84FIuw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (darwin) Cancel-Lock: sha1:Y+Anxi/7wvDbe5O1splbZ5PIjXE= sha1:FGuYqU6usX6l+OoIV2GRQ5zX54g= Content-Type: text/plain; charset=us-ascii Date: 2012-05-10T07:33:27+01:00 List-Id: "Randy Brukardt" writes: > I tend to lean toward the explicit side of the fence (I try to avoid use > clauses because of the maintenance headaches that they cause), but I do know > that code can be too explicit. People hate it when I write: > > if Ada.Strings.Unbounded."="(My_String, > Ada.Strings.Unbounded.To_Unbounded_String ("open") then ... > > because I refuse to use use clauses in almost all instances. I surely can > see why they might not find the above as readable as: > if My_String = "open" then ... Well, you live and learn! I thought the 'renaming To_Unbounded_String as "+"' trick was necessary - should have trusted the designers.