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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c39ad3e35a7690a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.222.71 with SMTP id qk7mr8577383pbc.1.1329102578656; Sun, 12 Feb 2012 19:09:38 -0800 (PST) Path: wr5ni18426pbc.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: BrianG Newsgroups: comp.lang.ada Subject: Re: Convention for naming of packages Date: Sun, 12 Feb 2012 22:09:35 -0500 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Injection-Date: Mon, 13 Feb 2012 03:09:37 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="TFSzwg9zEWICKE4g7mPu9w"; logging-data="24525"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aoAHuWyAb1U7sk9mMw/Gg" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 In-Reply-To: Cancel-Lock: sha1:pdLTU9zyWqcRZCQ4D9nFgcsuq/Q= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-02-12T22:09:35-05:00 List-Id: On 02/10/2012 07:56 PM, Randy Brukardt wrote: > "Yannick Duch�ne (Hibou57)" wrote in message > news:op.v9gxmhjnule2fv@douda-yannick... > ... >> Now I am seeking for something even more difficult: conflict between >> function names and object names. This can be solved using prefixed >> notation, but I want to avoid it to not bloat source too much. A too long >> full name is not readable and can just make people think Ada is >> definitively over-wordy (as J.P. Rosen explained in a paper, people tends >> to keep in mind bad points first about Ada). > > We faced this problem in Claw. One thing that often works is for function > names to be verbs, and object names to be nouns. > >> function Object (Param : Param_Type) return Object_Type; > > In Claw, this function would be called "Create". And then there is no > conflict. > Unless the function is meant to "Object" to the Param (i.e. raise an objection): function Object (Param : Param_Type) return Object_Type is Objection : exception; begin raise Objection; end Object; Sorry, I couldn't help myself; I'll blame it on the Hobbitses. Yeah, I know it's not legal. -- --- BrianG 000 @[Google's email domain] .com